Skip to content

Remove "RolePermission" model and table #4054

@ssddanbrown

Description

@ssddanbrown

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions