The permissions available to roles are relatively fixed and not user controllable.
They are often used by name (string) within the codebase for checking permissions.
It would probably be better just to maintain these as code rather than via the database, so changes don't need migrations and so we can be programatic references to permissions within code.
These would probably work best as an Enum so waiting until we have PHP8.1 minimum support may be convenient since there's otherwise no specific rush for this.
The permissions available to roles are relatively fixed and not user controllable.
They are often used by name (string) within the codebase for checking permissions.
It would probably be better just to maintain these as code rather than via the database, so changes don't need migrations and so we can be programatic references to permissions within code.
These would probably work best as an
Enumso waiting until we have PHP8.1 minimum support may be convenient since there's otherwise no specific rush for this.