ruby on rails - Authenticate rails_admin with admin attribute -
i want able let users have admin attribute set true access rails_admin. so, if user has is_admin attribute true, can access rails_admin interface.
i have checked documentation , can find authentication here: https://github.com/sferik/rails_admin/wiki/authentication
please, me so?
thanks
from https://github.com/sferik/rails_admin/wiki/authorization
config.authorize_with redirect_to main_app.root_path unless current_user.is_admin? end
Comments
Post a Comment