mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
fix perms
This commit is contained in:
parent
d92ab5a767
commit
ebef2cfcb4
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user