statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Ability to save roles in different files or permission "sets" #929

Open j3ll3yfi5h opened 1 year ago

j3ll3yfi5h commented 1 year ago

I'm currently working on a project with 53 different roles and it is a bit a pain to handle all of the different permissions in one file.

E.g. my roles file contains at the moment 3925 lines...

This could be solved with different files per role or some kind of sets (like fieldsets and blueprints).

Any thoughts on this?

jasonvarga commented 1 year ago

Use the control panel instead of touching the yaml file directly.

j3ll3yfi5h commented 1 year ago

Not really easy to manage too...

suissenais test_cp_roles_admin_ag_edit

jasonvarga commented 1 year ago

If you have a bunch of roles that are similar... maybe you could only have a few roles, but organize your users into groups instead.