mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
10 lines
228 B
Ruby
10 lines
228 B
Ruby
# 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
|