```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception

  protected

  def admin?
    BasicAuth.admin?(request)
  end
end
```

Fix usage of BasicAuth.logged_in? method
user
```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception

  protected

  def admin?
    BasicAuth.logged_in?(request)
  end
end
```
assistant