summaryrefslogtreecommitdiff
path: root/app/policies/issuable_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/issuable_policy.rb')
-rw-r--r--app/policies/issuable_policy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/issuable_policy.rb b/app/policies/issuable_policy.rb
index c253f9a9399..9501e499507 100644
--- a/app/policies/issuable_policy.rb
+++ b/app/policies/issuable_policy.rb
@@ -4,7 +4,7 @@ class IssuablePolicy < BasePolicy
end
def rules
- if @user && (@subject.author == @user || @subject.assignee == @user)
+ if @user && @subject.assignee_or_author?(@user)
can! :"read_#{action_name}"
can! :"update_#{action_name}"
end