Add tests for UserController get and post
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user