خرید بک لینک

Vote count: 0

I am building an app which aims to help shops organise their staff. There are many shops and each shop has many roles for the staff. The only constant position is the manager's one. I would like to enable him/her to create his/her own roles. For example, in shop A, the delivery guy may update order_status, but in shop B, he may not. As you can see, I would like the roles to be custom and to be constrained in the specific shop. I am considering three gems for the authorization - cancancan, rolify and pundit(but I am open to suggestions). Rolify is not that famous one but it has the convinient option to say

user.has_role?(:manager, Shop.find(4))  

Which gem do you think is the best choice? Thank you!

asked 30 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 16 تير 1395 ساعت: 14:38

صفحه بندی