diff options
author | Nick Thomas <nick@gitlab.com> | 2018-09-21 15:13:15 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-09-21 15:13:15 +0100 |
commit | e5f83afc60439d5b22a8604d6429218ff9ddf4c2 (patch) | |
tree | 87c3a7a8a4177fff4b0c6e949c4332305c3f3530 /app/models/event.rb | |
parent | 45ced6c5de760ef64b1f5e201ce518b1912c7704 (diff) | |
download | gitlab-ce-e5f83afc60439d5b22a8604d6429218ff9ddf4c2.tar.gz |
Fix Event#visible_to_user? for milestones
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index 596155a9525..2d9097a7769 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -160,7 +160,7 @@ class Event < ActiveRecord::Base elsif merge_request? || merge_request_note? Ability.allowed?(user, :read_merge_request, note? ? note_target : target) elsif milestone? - Ability.allowed?(user, :read_project, project) + Ability.allowed?(user, :read_milestone, project) else false # No other event types are visible end |