Deprecate AdministrativeMonitor#getRequiredPermission (#9494)

Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
This commit is contained in:
Daniel BeckandDaniel Beck authored and GitHub committed 2024-07-28 08:12:48 -06:00
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;
}