Leo/Backend/UnitTest #138
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user