baiytree
baiytree

Reputation: 21

On gitlab permissions

A project was created on gitlab with the default branch master, which is now set to protect the branch, and merge and push can only be done by the master programmer.An ordinary user is then created, dragged into the project, and set up to be a developer.This developer pulled the master code, and after modification, he could directly push it to gitlab warehouse, which was not right. What I thought was that he could not operate the master, but in fact he was not limited, may I ask what was wrong

Upvotes: 1

Views: 200

Answers (1)

VonC
VonC

Reputation: 1330102

A GitLab protected branch prevents pushes from everybody except users with Maintainer permission.

Double-check:

  • the rights associated with that project master branch
    https://docs.gitlab.com/ce/user/project/img/protected_branches_devs_can_push.png
  • the rights associated with that user (is he/she an admin of the GitLab remote instance? In that case, even declared as a developer, he/she could still push to a protected branch)
  • the actual push (does it resulted in a merge request?)

Upvotes: 1

Related Questions