You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add rolespermissions module, refractor the group and delete submission to use it (#4151)
Updates group management:
- **Centralized Group Definition:** Instead of creating groups within
migration files, which can be cumbersome to maintain, group definitions
are now managed through the AbstractRoles model. These roles are
synchronized using the `python manage.py sync_roles` command. This
ensures no existing groups or their associated permissions are deleted.
- **Module Renaming**: The `hypha.apply.users.groups` module has been
renamed to `hypha.apply.users.roles` to reflect the shift from
group-based to role-based permissions. This aligns with upcoming changes
utilizing the `rolepermissions` module.
- **Streamlined Group Descriptions**: The GroupDesc model is removed.
Instead, help text can be directly defined within the role itself. This
simplifies management and allows for translation of group descriptions.
**This is the first of a series of pull requests aimed at refactoring
the permissions system.**
As a sample implementation, converts the delete submission to use this
role-permissions. See:
8239c21
## Test Steps
- make sure the migrations run fine.
- groups are create correctly via `python manage.py sync_roles`, it
should also keep the existing groups.
- groups description is rendered in the admin.
- ensure delete submission/application is working as expected
0 commit comments