summaryrefslogtreecommitdiff
path: root/app/policies/event_policy.rb
blob: 5587956855e959d385bc115c78dbff5c7f601712 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class EventPolicy < BasePolicy # rubocop:disable Gitlab/NamespacedClass
  condition(:visible_to_user) do
    subject.visible_to_user?(user)
  end

  rule { visible_to_user }.enable :read_event
end