简体   繁体   中英

Does railsapps (rails-devise-pundit) apps have multiple role support baked in?

In a stock "rails-devise-pundit" application generated using "railsapps", does it include support for adding multiple roles for users?

A can I make John Doe have a :user role plus an :admin role

In the default "rails-devise-pundit" application, each user has only one role. However, you can create your own custom Pundit policies to accommodate multiple roles. See the Pundit documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM