wagtail-trash
wagtail-trash copied to clipboard
Make sure page permissions are respected in the recycle bin.
Right now the admin for the Recycle Bin shows RecycleBin
-models with an attached Page. We should filter out RecycleBin
s that contains pages that the current user is not allowed to see.
To keep in mind: When adding a page to recycle bin it is effectively moved in the page structure, so if the page has permissions in an ancestor, that permission is now gone. This could be solved by first checking if the page has any pagepermissions attached, and if not get nearest ancestors page permissions.
The permission could then be added to the RecycleBin
-model (not the RecycleBinPage
-model)