Skip to content

Commit afea895

Browse files
Add log output for agent user permission check
Co-authored-by: Andreas Nygard <andreas.nygard@gmail.com>
1 parent 75ea97e commit afea895

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/jenkinsci/plugins/GithubRequireOrganizationMembershipACL.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public boolean hasPermission(@NonNull Authentication a, @NonNull Permission perm
105105

106106
// Grant agent permissions to agent user
107107
if (candidateName.equalsIgnoreCase(agentUserName) && checkAgentUserPermission(permission)) {
108+
log.finest("Granting Agent Connect rights to user " + candidateName);
108109
return true;
109110
}
110111

@@ -161,6 +162,7 @@ else if (testBuildPermission(permission) && isInWhitelistedOrgs(authenticationTo
161162

162163
// Grant agent permissions to agent user
163164
if (authenticatedUserName.equalsIgnoreCase(agentUserName) && checkAgentUserPermission(permission)) {
165+
log.finest("Granting Agent Connect rights to user " + authenticatedUserName);
164166
return true;
165167
}
166168

0 commit comments

Comments
 (0)