Resolve conflicts and resolve condition bug in isNotSecretaryOrAdmin
Some checks failed
Build and test backend / Build-backend (pull_request) Failing after 2m27s
Build and test backend / Test-backend (pull_request) Failing after 2m25s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s

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); User poster = getUserFromToken(authorization);
if (poster == null) return true; 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){ public boolean IsNotIn(Role[] roles, String token){