Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-20 15:08:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-20 15:08:50 +0300
commit81fb153d0550c2c0b707a374cb6ee9f2ad089790 (patch)
tree0326c005bea62adc258bb0d4d1a3a7f5fc6a9532 /app/policies/issuable_policy.rb
parent084d7453e0866f2b29923552fb1c5f380f283ab5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/issuable_policy.rb')
-rw-r--r--app/policies/issuable_policy.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/policies/issuable_policy.rb b/app/policies/issuable_policy.rb
index 4e6df79773e..f1efcb25331 100644
--- a/app/policies/issuable_policy.rb
+++ b/app/policies/issuable_policy.rb
@@ -13,7 +13,9 @@ class IssuablePolicy < BasePolicy
condition(:is_author) { @subject&.author == @user }
- rule { can?(:guest_access) & assignee_or_author }.policy do
+ condition(:is_incident) { @subject.incident? }
+
+ rule { can?(:guest_access) & assignee_or_author & ~is_incident }.policy do
enable :read_issue
enable :update_issue
enable :reopen_issue