jenkinsci / bitbucket-branch-source-plugin

Bitbucket Branch Source Plugin
https://plugins.jenkins.io/cloudbees-bitbucket-branch-source
MIT License
216 stars 353 forks source link

Fix 'missing the Job/Configure permssion' error on Branch Sources page #822

Closed ghost closed 3 months ago

ghost commented 7 months ago

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:

$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!

Fixes #823