Leo/Backend/UnitTest #138

Merged
LeoMoulin merged 17 commits from Leo/Backend/UnitTest into master 2024-03-18 19:21:55 +01:00
Showing only changes of commit 37a9eb46ae - Show all commits

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