How to limit access to active admin to admin users

前端 未结 2 701
攒了一身酷
攒了一身酷 2021-01-30 14:38

I want that only my users who have their attribute is_admin set to true to be able to access my active admin backend

how should I do this?

2条回答
  •  隐瞒了意图╮
    2021-01-30 15:20

    For "Normal" users you should write separate logic to login to the site or maybe I did not understand why you want to allow users to login through the active admin. Active admin using devise, just create another model called User.

提交回复
热议问题