Has anyone tried extending the core module permissions in the Permission table to allow more than just View or Edit? I have tried adding new permissions for CREATE, UPDATE and DELETE as SYSTEM_MODULE_DEFINITION's and they appear to work as expected, showing up for all modules.
I also added two "module definition specific" permissions ADDTHREAD and ADDREPLY which only show up on the Module Settings page for the applicable module(s). See codes below:
ID PermissionCode ModuleDefID PermissionKey PermissionName
-- ------------------------ ------- ------------- ---------------
1 SYSTEM_MODULE_DEFINITION -1 VIEW View
2 SYSTEM_MODULE_DEFINITION -1 EDIT Edit
7 APPLICATION_MODULE_DEFINITION 94 ADDTHREAD Add Thread
8 APPLICATION_MODULE_DEFINITION 94 ADDREPLY Add Reply
12 SYSTEM_MODULE_DEFINITION -1 CREATE Create
13 SYSTEM_MODULE_DEFINITION -1 UPDATE Update
14 SYSTEM_MODULE_DEFINITION -1 DELETE Delete
This does not appear to adversely affect any of the core functionality, but it is hard to tell for sure without more extensive testing. Of course, none of this has any real affect unless code is added to the modules to check for the extended permissions
I am anxious to know if this approach has been tried before and what the results were
Thanks in advance for any feedback.
Ken