You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mshibuya edited this page Jun 16, 2012
·
10 revisions
You have access to the controller ('this'), you can decide wether the user should or should not be allowed to continue with something like:
# in config/initializer/rails_admin.rbRailsAdmin.configdo |config|
config.authorize_withdoredirect_tomain_app.root_pathunlesscurrent_user.try(:admin?)endend