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
Ariel edited this page May 27, 2015
·
13 revisions
You have access to the controller though self or with a block variable. You can decide whether the user should or should not be allowed to continue with something like:
# in config/initializer/rails_admin.rbRailsAdmin.configdo |config|
config.authorize_withdo |controller|
redirect_tomain_app.root_pathunlesscurrent_user.try(:admin?)endend