issues
search
ucsb-cs156-f23
/
proj-organic-f23-6pm-1
https://ucsb-cs156-f23.github.io/proj-organic-f23-6pm-1/
0
stars
0
forks
source link
#3 | B1 | Backend endpoints to toggle/add roles
#23
Closed
Johnsonchan105
closed
10 months ago
Johnsonchan105
commented
10 months ago
[x] There is an endpoint POST /api/admin/users/toggleAdmin in the UsersController to toggle the Admin status similar to
this one from proj-gauchoride
[x] There is an endpoint
POST /api/admin/users/toggleInstructor
in the UsersController to toggle the Instructor status similar to
this one for toggleDriver from proj-gauchoride
[x] The code to add the role
ROLE_INSTRUCTOR
is added to SecurityConfig, similar to
this code from gauchoride
POST /api/admin/users/toggleInstructor
in the UsersController to toggle the Instructor status similar to this one for toggleDriver from proj-gauchorideROLE_INSTRUCTOR
is added to SecurityConfig, similar to this code from gauchoride