Welcome to mirror list, hosted at ThFree Co, Russian Federation.

event_policy.rb « policies « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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