Jenkins Bitbucket Branch Source Plugin
The issue allows changes to Jenkinsfiles from users without write access to the project when using Bitbucket Server and the trust policy "Forks in the same account" is in place. This occurs when discovering pull requests from forks.