summaryrefslogtreecommitdiff
path: root/app/policies/alert_management/alert_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/alert_management/alert_policy.rb')
-rw-r--r--app/policies/alert_management/alert_policy.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/policies/alert_management/alert_policy.rb b/app/policies/alert_management/alert_policy.rb
new file mode 100644
index 00000000000..85fafcde2cc
--- /dev/null
+++ b/app/policies/alert_management/alert_policy.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+module AlertManagement
+ class AlertPolicy < ::BasePolicy
+ delegate { @subject.project }
+ end
+end