authenticate natively with avo as well as routes

This commit is contained in:
Chris
2026-01-21 16:00:13 -08:00
parent 13f53c8afe
commit db85a3f21e
+3 -3
View File
@@ -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