summaryrefslogtreecommitdiff
path: root/app/models/protected_branch.rb
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2018-05-22 16:51:45 +0800
committerMark Chao <mchao@gitlab.com>2018-06-06 20:57:14 +0900
commita8b570d8bced794dcb8f6f3a1155360038d76a66 (patch)
tree3808054bfa4dfb9d53ed713373030d61b0d2568b /app/models/protected_branch.rb
parentddabde5446a68d4717ed8d42431a480c7a68a8a9 (diff)
downloadgitlab-ce-a8b570d8bced794dcb8f6f3a1155360038d76a66.tar.gz
Rename master to maintainer
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r--app/models/protected_branch.rb2
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