diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-20 21:08:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-20 21:08:30 +0300 |
commit | 4faa270685797bd689d2035efe7c7e724950eb82 (patch) | |
tree | 880f35cfcb4ef5dad3c82f701937d27d5cc85389 /app/policies/issuable_policy.rb | |
parent | da23c5d563d68bfa5271b216209a7715c7ce3073 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/issuable_policy.rb')
-rw-r--r-- | app/policies/issuable_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/issuable_policy.rb b/app/policies/issuable_policy.rb index c9b936f9b06..400ac528018 100644 --- a/app/policies/issuable_policy.rb +++ b/app/policies/issuable_policy.rb @@ -4,7 +4,7 @@ class IssuablePolicy < BasePolicy delegate { subject_container } condition(:locked, scope: :subject, score: 0) { @subject.discussion_locked? } - condition(:is_project_member) { @user && subject_container.member?(@user) } + condition(:is_project_member) { subject_container.member?(@user) } condition(:can_read_issuable) { can?(:"read_#{@subject.to_ability_name}") } desc "User is the assignee or author" |