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:
authorGrzegorz Bizon <grzegorz@gitlab.com>2019-01-25 16:24:35 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2019-01-25 16:24:35 +0300
commitdc6091876d1c70e25f2153d24dbe04f8b4b875a9 (patch)
tree4c5bc9ec686a9ebf44db55171381aba6572f1d5f /app/policies
parentdfa31d5f2fa4a6c71c992710b9d1786707b4c912 (diff)
parent99689c83d1c08cc7a7406e89809ac592acbf058a (diff)
Merge branch 'container-repository-cleanup-api' into 'master'
Container repository cleanup API Closes #55978 See merge request gitlab-org/gitlab-ce!24303
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/container_repository_policy.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/container_repository_policy.rb b/app/policies/container_repository_policy.rb
new file mode 100644
index 00000000000..6781c845142
--- /dev/null
+++ b/app/policies/container_repository_policy.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+class ContainerRepositoryPolicy < BasePolicy
+ delegate { @subject.project }
+end