Add tests for UserController get and post
Some checks failed
Build and test backend / Build-backend (pull_request) Failing after 2m22s
Build and test backend / Test-backend (pull_request) Failing after 2m24s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s

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