Skip to content

Commit

Permalink
Check if pluginUser
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Dec 11, 2024
1 parent 3e353c9 commit ce80b7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ PrivilegesEvaluatorResponse providesPrivilege(PrivilegesEvaluationContext contex
}

// 4: If plugin is performing the action, check if plugin has permission
if (this.usersToActionMatcher.containsKey(context.getUser().getName())) {
if (context.getUser().isPluginUser() && this.usersToActionMatcher.containsKey(context.getUser().getName())) {
WildcardMatcher matcher = this.usersToActionMatcher.get(context.getUser().getName());
if (matcher != null && matcher.test(action)) {
return PrivilegesEvaluatorResponse.ok();
Expand Down

0 comments on commit ce80b7c

Please sign in to comment.