Check permissions for wiki pages, if possible

This commit is contained in:
Alexander Meindl 2021-01-18 20:39:36 +01:00
parent 8842199890
commit edb25feb83

View File

@ -33,6 +33,8 @@ module Additionals
.where("#{WikiContent.table_name}.updated_on > ?", User.current.today - days)
.order("#{WikiContent.table_name}.updated_on desc")
pages = pages.visible(User.current, project: project) if pages.respond_to? :visible
s = []
date = nil
pages.each do |page_raw|