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
christophermanning edited this page Jun 23, 2012
·
10 revisions
You have access to the controller though self or with a block variable, 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_withdo |controller|
redirect_tomain_app.root_pathunlesscurrent_user.try(:admin?)endend