Closed
Description
-
Gitea Version:
61f5c22 (https://try.gitea.io) -
Git version
2.7.4 -
Operating system:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial -
Database (use
[x]
):
I don't know just try using https://try.gitea.io -
Can you reproduce the bug at https://try.gitea.io:
- [x ] Yes (provide example URL)
https://try.gitea.io/cnsze/testing
- [x ] Yes (provide example URL)
Description
In the repository cnsze/testing, I
- Assign user cchai as the collaborator with "Write" permission"
- protected the branch master, only cnsze can push to the branch master
I tried user cchai cannot push to the master branch (this is correct)
However the master branch can be updated by cchai by pull request
Steps to reproduce the bug:
- cchai create a pull request (base: master, compare: b1)
- cchai click the "Merge Pull Request" button
- the branch master is updated (which is not expected as it suppose to be protected (only the user (which is user "cnsze") in the white list can update it))