summaryrefslogtreecommitdiff
path: root/app/policies/issue_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/issue_policy.rb')
-rw-r--r--app/policies/issue_policy.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/policies/issue_policy.rb b/app/policies/issue_policy.rb
index 28baa0d8338..b02bb8621ed 100644
--- a/app/policies/issue_policy.rb
+++ b/app/policies/issue_policy.rb
@@ -35,8 +35,15 @@ class IssuePolicy < IssuablePolicy
prevent :destroy_design
end
+ rule { ~can?(:read_design) }.policy do
+ prevent :move_design
+ end
+
rule { locked | moved }.policy do
prevent :create_design
+ prevent :move_design
prevent :destroy_design
end
end
+
+IssuePolicy.prepend_if_ee('EE::IssuePolicy')