Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[roles] new module #8921

Closed
wants to merge 8 commits into from
Closed

[roles] new module #8921

wants to merge 8 commits into from

Conversation

regisoc
Copy link
Contributor

@regisoc regisoc commented Oct 18, 2023

Brief summary of changes

New roles module.

Roles are pre-configured sets of permissions automatically assigned when the user is given a new role. This feature allows managers/coordinators to assign permissions to users based on their roles in a study.

List of tasks:

  • Insert Role DB schema (base - no role-permission/user-role relations).
  • Print a basic window to see all roles.
  • revamp permission_category (removed) + action (called permission_type)
  • Create the edit role page, show each role information through it. (draft) - no permission
  • Add the role-permission and user-role relations in DB.
  • Update the front-end (main table + edit role pages).
  • Add a link into user_account module.
  • Update the permission section in user account.
  • Utility methods in Utility.
  • ... more

Other tasks:

  • documentation
  • Widget?
  • Raisinbread
  • Tests

Testing instructions (if applicable)

  1. Apply patch 2023-10-17_roles_module.sql
  2. Go to LORIS front-end > Admin > User Roles

Link(s) to related issue(s)

Linked to #7416

@regisoc regisoc closed this Nov 3, 2023
@regisoc
Copy link
Contributor Author

regisoc commented Nov 3, 2023

The permission_type is useful but can be done outside the scope of roles implementation.

  • New PR for roles module: [roles] new module #8929
  • New PR for permissions.action attribute extraction into a new table: TBD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant