summaryrefslogtreecommitdiff
path: root/app/policies/deployment_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/deployment_policy.rb')
-rw-r--r--app/policies/deployment_policy.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/deployment_policy.rb b/app/policies/deployment_policy.rb
new file mode 100644
index 00000000000..163d070ff90
--- /dev/null
+++ b/app/policies/deployment_policy.rb
@@ -0,0 +1,5 @@
+class DeploymentPolicy < BasePolicy
+ def rules
+ delegate! @subject.project
+ end
+end