diff options
author | Mark Chao <mchao@gitlab.com> | 2018-05-22 16:51:45 +0800 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2018-06-06 20:57:14 +0900 |
commit | a8b570d8bced794dcb8f6f3a1155360038d76a66 (patch) | |
tree | 3808054bfa4dfb9d53ed713373030d61b0d2568b /app/models/protected_branch.rb | |
parent | ddabde5446a68d4717ed8d42431a480c7a68a8a9 (diff) | |
download | gitlab-ce-a8b570d8bced794dcb8f6f3a1155360038d76a66.tar.gz |
Rename master to maintainer
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r-- | app/models/protected_branch.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/protected_branch.rb b/app/models/protected_branch.rb index cb361a66591..dff99cfca35 100644 --- a/app/models/protected_branch.rb +++ b/app/models/protected_branch.rb @@ -5,7 +5,7 @@ class ProtectedBranch < ActiveRecord::Base protected_ref_access_levels :merge, :push def self.protected_ref_accessible_to?(ref, user, project:, action:, protected_refs: nil) - # Masters, owners and admins are allowed to create the default branch + # Maintainers, owners and admins are allowed to create the default branch if default_branch_protected? && project.empty_repo? return true if user.admin? || project.team.max_member_access(user.id) > Gitlab::Access::DEVELOPER end |