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:
authormanojmj <mmj@gitlab.com>2019-09-23 10:42:26 +0300
committermanojmj <mmj@gitlab.com>2019-10-09 10:33:32 +0300
commit39c99361b655998aaca2114da3e9664c2da27f85 (patch)
treefaaccfaf7dbd8c8625c981589e26d5eb2cc9026d /app/policies/group_policy.rb
parent7e2b1008547d8ced97a30e96ac6fbc2b7ad32a7f (diff)
Require maintainer permission to transfer projects
Diffstat (limited to 'app/policies/group_policy.rb')
-rw-r--r--app/policies/group_policy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/policies/group_policy.rb b/app/policies/group_policy.rb
index 951a104122d..8e1ded708ae 100644
--- a/app/policies/group_policy.rb
+++ b/app/policies/group_policy.rb
@@ -128,6 +128,8 @@ class GroupPolicy < BasePolicy
rule { owner | admin }.enable :read_statistics
+ rule { maintainer & can?(:create_projects) }.enable :transfer_projects
+
def access_level
return GroupMember::NO_ACCESS if @user.nil?