diff --git a/Backend/src/main/java/com/ebdapo/backend/security/auth/AuthenticationController.java b/Backend/src/main/java/com/ebdapo/backend/security/auth/AuthenticationController.java index 001d52dde18eb749ca012784f5ca1b055e679720..b73b0cd867715f92e09e720e7dea4cf40b7e9332 100644 --- a/Backend/src/main/java/com/ebdapo/backend/security/auth/AuthenticationController.java +++ b/Backend/src/main/java/com/ebdapo/backend/security/auth/AuthenticationController.java @@ -49,7 +49,7 @@ public class AuthenticationController { } //check if the user is related to the apotheke if yes he is authorized to see the data Benutzer b = benutzerRepo.getBenutzerWithApotheke(username, apothekeId); - return b != null || isAdmin(); + return b != null;// || isAdmin(); } private boolean isAdmin() {