issues
search
UoaWDCC
/
aeyb-monitor
7
stars
0
forks
source link
Seeded database with initial roles
#114
Closed
jacobatan
closed
1 year ago
jacobatan
commented
1 year ago
Closes:
#113
What was done:
Seeded database with initial Roles
1st user gets an admin role
Other users get default role, thereby removing the error on the profile page
Implemented services pattern
Made
Default
and
Admin
roles immutable
How to test:
[x] Change the
mongo_uri
to a different db instance.
[x] And login with the first account => This account should have the
Admin
role.
[x] Login with your second account => This account should have the
Default
role.
[x] Try to edit the
Default
and
Admin
roles, it shouldn't save
Closes: #113
What was done:
Default
andAdmin
roles immutableHow to test:
mongo_uri
to a different db instance.Admin
role.Default
role.Default
andAdmin
roles, it shouldn't save