Closed dmijatovic closed 9 months ago
[rsd-frontend] Kudos, SonarCloud Quality Gate passed!
I did notice one race condition. If two users, both admin, are logged in at the same time in a different browser, they can delete each others admin rights and that way delete the last admin ;-)
You can then create an admin directly in the database again, so I'm ok with this.
Assign rsd admin role
Changes proposed in this pull request:
How to test:
make start
to build solution and create test dataNewton
Change professor3 to rsd-admin
Cannot change its own role
PR Checklist:
docker-compose.yml