diff options
Diffstat (limited to 'app/policies/wiki_page_policy.rb')
-rw-r--r-- | app/policies/wiki_page_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/wiki_page_policy.rb b/app/policies/wiki_page_policy.rb index 468632c9085..f284fd9f5df 100644 --- a/app/policies/wiki_page_policy.rb +++ b/app/policies/wiki_page_policy.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class WikiPagePolicy < BasePolicy - delegate { @subject.wiki.project } + delegate { @subject.wiki.container } rule { can?(:read_wiki) }.enable :read_wiki_page end |