1
0
forked from PGL/Clyde

Add tests for UserController get and post

This commit is contained in:
LeoMoulin 2024-03-17 15:42:43 +01:00
parent bfc4f6567b
commit 37a9eb46ae

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