human-essentials
human-essentials copied to clipboard
Introduce the concept of roles
Is there an existing request for this feature?
- [X] I have searched the existing issues
Is there a pain point in the app driving this feature request?
Currently, a user can have at most three roles: superadmin, org admin and partner user. These are all indicated by fields on the users
table.
We don't have a way to give a user multiple roles (e.g. be a user on multiple partners) or to easily add new roles without having to put in specialized logic around specific columns of the user table.
Desired Behavior
We should introduce the rolify gem and make roles a separate entity from users. This will turn it into a one-to-many relationship and allow us to more easily work with roles within the codebase.
Criteria for Completion
- [] Rolify has been added
- [] All existing roles have been migrated
- [] All existing behavior uses the correct role logic
Anything else?
No response
Code of Conduct
- [X] I've read the Code of Conduct and understand my responsibilities as a member of the Ruby for Good community
This issue has been inactive for 253 hours (10.54 days) and will be automatically unassigned after 107 more hours (4.46 days).
This issue has been inactive for 373 hours (15.54 days) and is past the limit of 360 hours (15.00 days) so is being unassigned.
This issue has been inactive for 365 hours (15.21 days) and is past the limit of 360 hours (15.00 days) so is being unassigned.