pull-request-notifier-for-bitbucket icon indicating copy to clipboard operation
pull-request-notifier-for-bitbucket copied to clipboard

Error when project admin tries to configure button/notification

Open fredrikand opened this issue 7 years ago • 4 comments

When a user is not admin in the instance, but is admin for the project, Creating button or notification seems to cast some error.

image

fredrikand avatar Sep 27 '16 20:09 fredrikand

I made a quick test and it works for me. I can create notifications and buttons.

tomasbjerre avatar Sep 28 '16 05:09 tomasbjerre

Ok. Thank you for getting back to us. I will run through a few use cases to verify in what scenarios we experience the problem.

fredrikand avatar Sep 28 '16 05:09 fredrikand

I have run this scenario: Bitbucket 4.9.1 PRNB: 2.37 Project and repo exists since previous versions of Bitbucket.

User has Global Permission "Bitbucket User" User has project permisson "Admin" No specific permissions set on repo

User goes into repo settings for Pull Request notifier and tries to create a button.

User get the error shown in the screenshot.

fredrikand avatar Sep 28 '16 07:09 fredrikand

I made a small docker-compose to ease fiddle with this.

I found another issue. That if you create a button as a project admin, and dont select visibilty, the button will not be visible for you. It will be visible for system admins and therefore not shown after its saved.

tomasbjerre avatar Oct 15 '16 06:10 tomasbjerre