Skip to content

Commit

Permalink
Merge pull request #501 from navikt/dev
Browse files Browse the repository at this point in the history
🚀 Deploy enda en fix
  • Loading branch information
tu55eladd authored Jan 3, 2023
2 parents 4294532 + b7c235f commit dc56fda
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public ResponseEntity<KvpDTO> getKvpStatus(@RequestParam("aktorId") AktorId akto
private boolean isRequestAuthorized(AktorId aktorId) {
String username = authContextHolder.getSubject().orElse("").toLowerCase();
String appName = authService.hentApplikasjonFraContext();
if (authService.erSystemBruker()) {
if (authService.erSystemBrukerFraAzureAd()) {
return allowedUsers.contains(appName);
} else if (authService.erSystemBruker()) {
return allowedUsers.contains(username);
} else if (authService.erInternBruker()) {
return allowedApps.contains(appName);
Expand Down

0 comments on commit dc56fda

Please sign in to comment.