```ruby
# Filters added to this controller apply to all controllers in the refinery backend.
# Likewise, all the methods added will be available for all controllers in the refinery backend.

# You can extend refinery backend with your own functions here and they will likely not get overriden in an update.

class Admin::BaseController < Refinery::AdminBaseController

end
```

Allow access to admin area for admin users only
user
```ruby
# Filters added to this controller apply to all controllers in the refinery backend.
# Likewise, all the methods added will be available for all controllers in the refinery backend.

# You can extend refinery backend with your own functions here and they will likely not get overriden in an update.

class Admin::BaseController < Refinery::AdminBaseController
  before_filter :require_admin_user

  def require_admin_user
     redirect_to root_path if (!current_user || current_user.plugins.blank?)
  end    
end
```
assistant