1
0
forked from PGL/Clyde

Resolve conflicts and resolve condition bug in isNotSecretaryOrAdmin

This commit is contained in:
LeoMoulin 2024-03-17 19:17:38 +01:00
parent 114116b97c
commit f2b80ba89f

View File

@ -47,7 +47,7 @@ public class AuthenticatorService {
User poster = getUserFromToken(authorization);
if (poster == null) return true;
return poster.getRole() != Role.Secretary || poster.getRole() != Role.Admin;
return poster.getRole() != Role.Secretary && poster.getRole() != Role.Admin;
}
public boolean IsNotIn(Role[] roles, String token){