Skip to content
Snippets Groups Projects

Resolve "Rename the `Master` role to `Maintainer`"

Merged Mark Chao requested to merge 42751-rename-master-to-maintainer into master
2 files
+ 9
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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
Loading