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

Portal Redesign: User Roles #112

Open
shravanhariharan2 opened this issue Aug 22, 2020 · 3 comments
Open

Portal Redesign: User Roles #112

shravanhariharan2 opened this issue Aug 22, 2020 · 3 comments
Assignees
Labels
Good First Issue Suitable for first-time contributors Redesign Portal redesign related issues

Comments

@shravanhariharan2
Copy link
Collaborator

Implement the functionality for adding, removing, and storing user roles to be used for assigning users as event hosts, merch distributors, staff, and other potential future roles.

Routes to add:

  • POST /admin/role - create a new role to assign to users
  • DELETE /admin/role - delete an existing role - should automatically un-assign every user to that role before deletion
  • POST /user/role - support both adding and removing user roles by user uuid in one request. Requires admin permissions, and allows admins to manage user roles all in one request (using something like addedRoles, removedRoles, and userIds)
@shravanhariharan2 shravanhariharan2 self-assigned this Aug 22, 2020
@shravanhariharan2 shravanhariharan2 changed the title Portal Redesign: Implement User Roles Portal Redesign: User Roles Aug 23, 2020
@shravanhariharan2
Copy link
Collaborator Author

Potentially add a HIDDEN/DISABLED/BLOCKED role where some users (i.e. dummy accounts in the portal used for testing production-level things) should be hidden/blocked from being searched up, showing up the leaderboard, checking into events, and other activities.

@sumeet-bansal
Copy link
Member

Seems kinda hacky to have a role just for test users, but also users can already be BLOCKED as an account state.

@steets250 steets250 added the Redesign Portal redesign related issues label Nov 16, 2021
@shravanhariharan2
Copy link
Collaborator Author

We can tweak this to be just role management (i.e. admins can assign roles to users) vs. being able to create new roles with their own permissions.

@steets250 steets250 added the Good First Issue Suitable for first-time contributors label Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Suitable for first-time contributors Redesign Portal redesign related issues
Projects
None yet
Development

No branches or pull requests

3 participants