Restructure the spp_user_roles module to support dynamic setup of user roles by other modules
Why is this change needed?
The OpenSPP User Roles module is currently set to depend on other modules for the setup of user roles. An issue is introduced by this considering that there is no flexibility in managing variations in access rights based on the implementation requirements. For example, the SP-MIS registrar role have a different access rights defined compared with the registrar role in the Farmer Registry. Since all modules in the spp_user_roles defined in its dependencies will be installed automatically, there is another issue of having modules not applicable for an implementation to be installed.
How was the change implemented?
- Remove all module specific role definitions in spp_user_roles and move it to the corresponding modules.
- Remove non-generic dependencies in the spp_user_roles module.
New unit tests
Unit tests executed by the author
How to test manually
Related links
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code