Commit e9169cde authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix permissions check to check on eventable

We need to check on eventable because the eventable may have more
specific policies. e.g. confidential issues
parent 4f2c8aa4
......@@ -15,7 +15,7 @@ class ResourceStateEventFinder
def can_read_eventable?
return unless eventable
Ability.allowed?(current_user, read_ability, eventable.project)
Ability.allowed?(current_user, read_ability, eventable)
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment