mirror of
https://github.com/czhu12/canine.git
synced 2026-04-30 16:40:27 -05:00
authenticate natively with avo as well as routes
This commit is contained in:
@@ -23,9 +23,9 @@ Avo.configure do |config|
|
||||
|
||||
## == Authentication ==
|
||||
config.current_user_method = :current_user
|
||||
# config.authenticate_with do
|
||||
# current_user.present? && current_user.admin?
|
||||
# end
|
||||
config.authenticate_with do
|
||||
current_user.present? && current_user.admin?
|
||||
end
|
||||
|
||||
## == Authorization ==
|
||||
# config.is_admin_method = :is_admin
|
||||
|
||||
Reference in New Issue
Block a user