Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61465

Make Functions#checkAnyPermission work on objects that aren't AccessControlled

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • 2.226

      Functions#checkAnyPermission doesn't have an overload for an Object first arg (rather than AccessControlled.

      As explained in https://github.com/jenkinsci/jenkins/blob/a79101ce5440f2cff160dde791e923ce2548cfbe/core/src/main/java/hudson/Functions.java#L838-L842 this is a problem:

      Multiple-permission checks won't work on views belonging to objects that aren't AccessControlled. Even more annoying given that all use cases for this feature at the moment would check on app / theĀ Jenkins singleton anyway.

            danielbeck Daniel Beck
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: