summaryrefslogtreecommitdiff
path: root/app/policies/packages/package_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/packages/package_policy.rb')
-rw-r--r--app/policies/packages/package_policy.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/policies/packages/package_policy.rb b/app/policies/packages/package_policy.rb
new file mode 100644
index 00000000000..8eef280c640
--- /dev/null
+++ b/app/policies/packages/package_policy.rb
@@ -0,0 +1,6 @@
+# frozen_string_literal: true
+module Packages
+ class PackagePolicy < BasePolicy
+ delegate { @subject.project }
+ end
+end