katebouis / GUI-DB

A sample project using docker-compose with Node and React.JS containers while using a MySQL DBaaS.
GNU General Public License v3.0
0 stars 1 forks source link

Admins Permissions editing #60

Closed pmcfarlain closed 2 years ago

pmcfarlain commented 2 years ago

Create API calls that allow admins to edit permission levels of users.

pmcfarlain commented 2 years ago

Admins can now edit the permissions levels of users. Disabled users (permissions = -1) can't log in. Blocked users (permissions = 0) can't post on message board or leaderboard (THE API CALLS FOR MESSAGE BOARD AND LEADERBOARD USAGE WILL NEED TO BE UNDER routes/unblocked FOR THIS FUNCTIONALITY TO WORK PROPERLY). Admins can also promote users to admins. Admins cannot edit permissions of other admins.