mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 12:02:20 +00:00
Deprecate AdministrativeMonitor#getRequiredPermission (#9494)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
This commit is contained in:
1 parent
90fb0d6e5e
commit
11f87f70ad
1 file changed
+3
@@ -200,7 +200,10 @@ public abstract class AdministrativeMonitor extends AbstractModelObject implemen
|
||||
* 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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user