Skip to content

Commit

Permalink
Merge pull request #13 from aHenryJard/790_manage_user
Browse files Browse the repository at this point in the history
By default managementLink are for administer
  • Loading branch information
aHenryJard authored Oct 31, 2019
2 parents daf7d6b + bb2deeb commit 2d232b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions core/src/main/java/hudson/diagnosis/OldDataMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import hudson.model.listeners.SaveableListener;
import hudson.security.ACL;
import hudson.security.ACLContext;
import hudson.security.Permission;
import hudson.util.RobustReflectionConverter;
import hudson.util.VersionNumber;
import java.io.IOException;
Expand Down Expand Up @@ -460,5 +461,10 @@ public String getDescription() {
public String getDisplayName() {
return Messages.OldDataMonitor_DisplayName();
}

@Override
public Permission getRequiredPermission() {
return Jenkins.CONFIGURE_JENKINS;
}
}
}
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/ManagementLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public boolean getRequiresConfirmation() {
* @return permission required for user to access this management link, in addition to {@link Jenkins#ADMINISTER}
*/
public @CheckForNull Permission getRequiredPermission() {
return Jenkins.CONFIGURE_JENKINS;
return Jenkins.ADMINISTER;
}

/**
Expand Down

0 comments on commit 2d232b6

Please sign in to comment.