debian-mirror-gitlab/app/policies/wiki_page_policy.rb
2020-05-24 23:13:21 +05:30

7 lines
160 B
Ruby

# frozen_string_literal: true
class WikiPagePolicy < BasePolicy
delegate { @subject.wiki.container }
rule { can?(:read_wiki) }.enable :read_wiki_page
end