Skip to content

Commit

Permalink
Deprecate AdministrativeMonitor#getRequiredPermission (#9494)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
  • Loading branch information
daniel-beck and daniel-beck authored Jul 28, 2024
1 parent 90fb0d6 commit 11f87f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/hudson/model/AdministrativeMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ public void doDisable(StaplerRequest req, StaplerResponse rsp) throws IOExceptio
* Form UI elements that change system state, e.g. toggling a feature on or off, need to be hidden from users
* lacking Administer permission.
* </p>
* @since 2.233
* @deprecated Callers should use {@link #checkRequiredPermission()} or {@link #hasRequiredPermission()}.
*/
@Deprecated
public Permission getRequiredPermission() {
return Jenkins.ADMINISTER;
}
Expand Down

0 comments on commit 11f87f7

Please sign in to comment.