Skip to content

Commit

Permalink
make the deprecated permissions == Jenkins.ADMINISTER, since that is …
Browse files Browse the repository at this point in the history
…(effectively)

what they are.
  • Loading branch information
mikecirioli committed Dec 6, 2019
1 parent caed539 commit e7bc69d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions core/src/main/java/hudson/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2105,10 +2105,12 @@ public String toString() {
}
public static boolean FAST_LOOKUP = !SystemProperties.getBoolean(PluginManager.class.getName()+".noFastLookup");

/** @deprecated use {@link Jenkins#ADMINISTER} instead */
@Deprecated
public static final Permission UPLOAD_PLUGINS = new Permission(Jenkins.PERMISSIONS, "UploadPlugins", Messages._PluginManager_UploadPluginsPermission_Description(),Jenkins.ADMINISTER,PermissionScope.JENKINS);
public static final Permission UPLOAD_PLUGINS = Jenkins.ADMINISTER;
/** @deprecated use {@link Jenkins#ADMINISTER} instead */
@Deprecated
public static final Permission CONFIGURE_UPDATECENTER = new Permission(Jenkins.PERMISSIONS, "ConfigureUpdateCenter", Messages._PluginManager_ConfigureUpdateCenterPermission_Description(),Jenkins.ADMINISTER,PermissionScope.JENKINS);
public static final Permission CONFIGURE_UPDATECENTER = Jenkins.ADMINISTER;

/**
* Remembers why a plugin failed to deploy.
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/jenkins/model/Jenkins.java
Original file line number Diff line number Diff line change
Expand Up @@ -5271,7 +5271,7 @@ private static void computeVersion(ServletContext context) {
public static final Permission READ = new Permission(PERMISSIONS,"Read",Messages._Hudson_ReadPermission_Description(),Permission.READ,PermissionScope.JENKINS);
/** @deprecated use {@link #ADMINISTER} instead */
@Deprecated
public static final Permission RUN_SCRIPTS = new Permission(PERMISSIONS, "RunScripts", Messages._Hudson_RunScriptsPermission_Description(),ADMINISTER,PermissionScope.JENKINS);
public static final Permission RUN_SCRIPTS = ADMINISTER;

/**
* Urls that are always visible without READ permission.
Expand Down

0 comments on commit e7bc69d

Please sign in to comment.