Skip to content

Commit

Permalink
Merge pull request #503 from navikt/dev
Browse files Browse the repository at this point in the history
FIX the fix
  • Loading branch information
tu55eladd authored Jan 3, 2023
2 parents dc56fda + 19cfaf5 commit 89577c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private boolean isRequestAuthorized(AktorId aktorId) {
String username = authContextHolder.getSubject().orElse("").toLowerCase();
String appName = authService.hentApplikasjonFraContext();
if (authService.erSystemBrukerFraAzureAd()) {
return allowedUsers.contains(appName);
return allowedApps.contains(appName);
} else if (authService.erSystemBruker()) {
return allowedUsers.contains(username);
} else if (authService.erInternBruker()) {
Expand Down

0 comments on commit 89577c7

Please sign in to comment.