debian-mirror-gitlab/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

2020-01-01 13:55:28 +05:30
# frozen_string_literal: true
class WikiPagePolicy < BasePolicy
2020-05-24 23:13:21 +05:30
delegate { @subject.wiki.container }
2020-01-01 13:55:28 +05:30
rule { can?(:read_wiki) }.enable :read_wiki_page
end