You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* By default {@link Jenkins#ADMINISTER}, but {@link Jenkins#SYSTEM_READ} or {@link Jenkins#MANAGE} are also supported.
300
299
* <p>
301
-
* Changing this permission check to return {@link Jenkins#SYSTEM_READ} will make the active
302
-
* administrative monitor appear on {@link ManageJenkinsAction} to users without Administer permission.
303
-
* {@link #doDisable(StaplerRequest2, StaplerResponse2)} will still always require Administer permission.
300
+
* Changing this permission check to return {@link Jenkins#SYSTEM_READ} will make the active
301
+
* administrative monitor appear on {@link ManageJenkinsAction} to users without Administer permission.
302
+
* {@link #doDisable(StaplerRequest2, StaplerResponse2)} will still always require Administer permission.
304
303
* </p>
305
304
* <p>
306
-
* This method only allows for a single permission to be returned. If more complex permission checks are required,
307
-
* override {@link #checkRequiredPermission()} and {@link #hasRequiredPermission()} instead.
305
+
* This method only allows for a single permission to be returned. If more complex permission checks are required,
306
+
* override {@link #checkRequiredPermission()} and {@link #hasRequiredPermission()} instead.
308
307
* </p>
309
308
* <p>
310
-
* Implementers need to ensure that {@code doAct} and other web methods perform
311
-
* necessary permission checks:
312
-
* Users with System Read permissions are expected to be limited to read-only
313
-
* access.
314
-
* Form UI elements that change system state, e.g. toggling a feature on or off,
315
-
* need to be hidden from users
309
+
* Implementers need to ensure that {@code doAct} and other web methods perform necessary permission checks:
310
+
* Users with System Read permissions are expected to be limited to read-only access.
311
+
* Form UI elements that change system state, e.g. toggling a feature on or off, need to be hidden from users
316
312
* lacking Administer permission.
317
313
* </p>
318
314
*
@@ -330,7 +326,6 @@ public Permission getRequiredPermission() {
330
326
* Subclasses may override this method and {@link #hasRequiredPermission()} instead of {@link #getRequiredPermission()} to perform more complex permission checks,
331
327
* for example, checking either {@link Jenkins#MANAGE} or {@link Jenkins#SYSTEM_READ}.
332
328
* </p>
333
-
*
334
329
* @see #getRequiredPermission()
335
330
* @see #hasRequiredPermission()
336
331
* @since 2.468
@@ -345,7 +340,6 @@ public void checkRequiredPermission() {
345
340
* Subclasses may override this method and {@link #checkRequiredPermission} instead of {@link #getRequiredPermission()} to perform more complex permission checks,
346
341
* for example, checking either {@link Jenkins#MANAGE} or {@link Jenkins#SYSTEM_READ}.
0 commit comments