Skip to content

Commit

Permalink
Change selected login statements to debug
Browse files Browse the repository at this point in the history
The logging statements were set to "error", likely
for development purposes. Set to debug.
  • Loading branch information
Arnei committed Mar 4, 2024
1 parent 42375e9 commit efa8649
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,10 @@ public boolean hasPermission(final MediaPackage mp, final String action) {
var allowed = false;

// Check special ROLE_EPISODE_<ID>_<ACTION> permissions
logger.error("episodeIdRole set to: {}", episodeIdRole);
logger.debug("episodeIdRole set to: {}", episodeIdRole);
if (episodeIdRole) {
var episodeRole = "ROLE_EPISODE_" + mp.getIdentifier() + "_" + action.toUpperCase();
logger.error("Checking for role: {}", episodeRole);
logger.debug("Checking for role: {}", episodeRole);
allowed = user.getRoles().stream().map(Role::getName).anyMatch(r -> r.equals(episodeRole));
}

Expand Down

0 comments on commit efa8649

Please sign in to comment.