fix perms

This commit is contained in:
Andrew Brown 2018-10-01 21:59:40 -05:00
parent d92ab5a767
commit ebef2cfcb4

View File

@ -237,7 +237,7 @@ class ContentController < ApplicationController
def deleted
@content_pages = {}
@activated_content_types.each do |content_type|
@content_pages[content_type] = content_type.constantize.with_deleted.where('deleted_at > ?', 24.hours.ago)
@content_pages[content_type] = content_type.constantize.with_deleted.where('deleted_at > ?', 24.hours.ago).where(user_id: current_user.id)
end
end