Fix 'missing the Job/Configure permssion' error on Branch Sources page when used with the Role-Based Authorization Strategy plugin (JENKINS-72821)
Your checklist for this pull request
[X] Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
[X] Ensure that the pull request title represents the desired changelog entry
[X] Please describe what you did
[X] Link to relevant issues in GitHub or in Jenkins JIRA
[X] Link to relevant pull requests, esp. upstream and downstream changes
[ ] Did you provide a test-case? That demonstrates feature works or fixes the issue.
When this plugin is used in combination with the "Role-Based Authorization Strategy", the "Branch Sources" job configuration page throws the following error:
$USER is missing the Job/Configure permission
This error is shown even when the user has full Admin rights on the Jenkins instance.
I'm not sure that this fix is 100% correct, but it does resolve the problem. I noticed that another PR in a similar project fixed a similar issue (JENKINS-60116) by checking for the EXTENDED_READ permission.
So, I blindly did the same thing. Would appreciate someone checking my work!
Fix 'missing the Job/Configure permssion' error on Branch Sources page when used with the Role-Based Authorization Strategy plugin (JENKINS-72821)
Your checklist for this pull request
When this plugin is used in combination with the "Role-Based Authorization Strategy", the "Branch Sources" job configuration page throws the following error:
This error is shown even when the user has full Admin rights on the Jenkins instance.
I'm not sure that this fix is 100% correct, but it does resolve the problem. I noticed that another PR in a similar project fixed a similar issue (JENKINS-60116) by checking for the
EXTENDED_READ
permission.So, I blindly did the same thing. Would appreciate someone checking my work!
Fixes #823