Skip to content
Snippets Groups Projects
Commit 78cd1017 authored by Lars Maronde's avatar Lars Maronde
Browse files

authorization bugfix

parent df4558c2
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ public class AuthenticationController { ...@@ -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 //check if the user is related to the apotheke if yes he is authorized to see the data
Benutzer b = benutzerRepo.getBenutzerWithApotheke(username, apothekeId); Benutzer b = benutzerRepo.getBenutzerWithApotheke(username, apothekeId);
return b != null || isAdmin(); return b != null;// || isAdmin();
} }
private boolean isAdmin() { private boolean isAdmin() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment