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

Admin Role Functionalities #139

Open
arath7 opened this issue Jan 30, 2025 · 0 comments
Open

Admin Role Functionalities #139

arath7 opened this issue Jan 30, 2025 · 0 comments
Labels

Comments

@arath7
Copy link
Contributor

arath7 commented Jan 30, 2025

Now that the admin roles exist, we need to split the responsibilities of each admin

Super Admin:

  • access to task templates page and users page
  • can promote/demote any user including themselves
  • but if demoting themselves, can only do so if there is at least one other super admin. otherwise, super admin must first promote someone else to super admin (think Google docs owner permissions)
  • Where to start: admin.route.ts file and changing the isAdmin function to whichever admin can do that specific task
  • need to change the isAdmin function in auth.ts to now handle any admin type
@arath7 arath7 added the backend label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant