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:
Diffstat (limited to 'app/policies/namespaces/project_namespace_policy.rb')
-rw-r--r--app/policies/namespaces/project_namespace_policy.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/policies/namespaces/project_namespace_policy.rb b/app/policies/namespaces/project_namespace_policy.rb
index 33aadc7c411..500c325138e 100644
--- a/app/policies/namespaces/project_namespace_policy.rb
+++ b/app/policies/namespaces/project_namespace_policy.rb
@@ -2,8 +2,8 @@
module Namespaces
class ProjectNamespacePolicy < Namespaces::GroupProjectNamespaceSharedPolicy
- # For now users are not granted any permissions on project namespace
- # as it's completely hidden to them. When we start using project
- # namespaces in queries, we will have to extend this policy.
+ # TODO: once https://gitlab.com/gitlab-org/gitlab/-/issues/364277 is solved, this
+ # should not be necessary anymore, and should be replaced with `delegate(:project)`.
+ delegate(:reload_project)
end
end