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 setup considering that there is no flexibility in managing variations in access rights based on the implementation requirements. For example, the SP-MISregistrar 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. This will result to conflicts with the modules installed.
The following are the requirements of this ticket:
[ ] Remove the dependency of the spp_user_roles with other modules except the base and base_user_role modules.
[ ] Remove the currently defined roles in the spp_user_roles module.
[ ] Add spp_user_roles in the dependencies of all modules that requires the creation of new roles or adding access rights to existing roles.
[ ] Create new roles or add access rights to existing roles in all applicable modules.
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 setup 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. This will result to conflicts with the modules installed.
The following are the requirements of this ticket: