1
0
forked from PGL/Clyde

Add tests for UserController get and post

This commit is contained in:
2024-03-17 15:40:14 +01:00
parent 189e664f37
commit d423a57fa0
7 changed files with 139 additions and 7 deletions

View File

@ -104,7 +104,7 @@ public class UserController {
User poster = authServ.getUserFromToken(authorization);
if (poster == null) return false;
return poster.getRole() == Role.Secretary && poster.getRole() == Role.Admin;
return poster.getRole() == Role.Secretary || poster.getRole() == Role.Admin;
}
}