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>2022-09-20 15:11:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-20 15:11:03 +0300
commit027f19b39c73b3b98e7cf305fead871626e8b717 (patch)
treed97ff241c76a5655f8f58444ccf76695b1b89bcf /app/models/group.rb
parenta7b422860c90eecd1b98845d234a8347686fbdcf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 1445e71b0bc..38623d91705 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -904,11 +904,7 @@ class Group < Namespace
end
def packages_policy_subject
- if Feature.enabled?(:read_package_policy_rule, self)
- ::Packages::Policies::Group.new(self)
- else
- self
- end
+ ::Packages::Policies::Group.new(self)
end
def update_two_factor_requirement_for_members