diff options
Diffstat (limited to 'app/policies/packages/package_policy.rb')
-rw-r--r-- | app/policies/packages/package_policy.rb | 6 |
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 |