#4927 - Move use of privleges being defined in the database to be defined in hooks

Identifier #4927
Issue type Feature request or suggestion
Title Move use of privleges being defined in the database to be defined in hooks
Status Open
Handling member Deleted
Addon core_permission_management
Description Currently privilege definitions are installed into the databases. Since we made this design decision, we have moved to implementing such things instead via code using hooks.

Disadvantages of using the database:
- More complex installation/uninstallation code
- Potential for the database to get out of sync with what the Composr version is designed for

Consider moving them to hooks.

Note we would still need installer code to assign privileges to groups where they are on by default - for performance reasons we would need these coming out of the DB with a single query, rather than loading up a lot of individual files.
For this reason, it's a bit of a toss up whether we should make the change, as we would be implementing parallel code for dealing with a lot of the privileges.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated