gitlab-org--gitlab-foss/app/policies/wiki_page_policy.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
160 B
Ruby
Raw Normal View History

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