varvet / pundit

Minimal authorization through OO design and pure Ruby classes
MIT License
8.21k stars 624 forks source link

how can i authorize all controllers and actions #818

Closed mices closed 1 week ago

mices commented 1 week ago

My app is in house inventory management system for cd's, dvd's, vhs, cassettes, etc... Right now there's no users, only an admin, me, who has unrestricted access when logged in Now I need to hire someone to look at images of CD's and cassettes in foreign languages (CJK) and type them into the edit form so I wanna configure that a user who has role :admin can have unrestricted access and a user who has role :editor will be able to edit the assigned records that need updating