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

Phase Out hasElevatedPerms function #61

Open
AydanPirani opened this issue Oct 1, 2023 · 1 comment
Open

Phase Out hasElevatedPerms function #61

AydanPirani opened this issue Oct 1, 2023 · 1 comment
Milestone

Comments

@AydanPirani
Copy link
Collaborator

Replace this with newly-added hasStaffPerms and hasAdminPerms functions. Advantages: more granularity, and it's easier for us to define custom behaviors per-roles, as opposed to having a single "catch-all" role for elevated perms.

https://github.com/HackIllinois/adonix/blob/8169ebb4b2a9b489074296c72ef19a7b8369cbad/src/services/auth/auth-lib.ts#L284C1-L284C77

@AydanPirani AydanPirani added this to the Longetivity milestone Oct 1, 2023
@AydanPirani
Copy link
Collaborator Author

Example use case: if we have a volunteer list and add volunteers to the API, maybe volunteers have elevated access to do things like check people in - would be nice to have.

@aletya aletya self-assigned this Jan 1, 2024
@aletya aletya removed their assignment Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants