Add tests for UserController get and post

This commit is contained in:
LeoMoulin committed 2024-03-17 15:40:14 +01:00
1 parent 189e664f37
commit d423a57fa0
7 files changed
+139 -7

No files matched your search

@@ -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;
}
}