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