Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-24 12:09:44 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-24 12:09:44 +0300
commitb1b7c2f9a744197a111c81719c546a474adab4e8 (patch)
tree2fe9d392110fb1fee8a8e6eac1f520425fee1c9c /app/helpers/groups_helper.rb
parent81c305759174e2f55176356e98d264ea1c4b747d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r--app/helpers/groups_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index 91f8bc33e3e..a6c3c97a873 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -49,6 +49,10 @@ module GroupsHelper
can?(current_user, :change_visibility_level, group)
end
+ def can_update_default_branch_protection?(group)
+ can?(current_user, :update_default_branch_protection, group)
+ end
+
def can_change_share_with_group_lock?(group)
can?(current_user, :change_share_with_group_lock, group)
end