Additional trash stuff

This commit is contained in:
matthew
2019-06-27 08:11:19 -05:00
committed by Shish
parent 32d37254f7
commit 1bd9238b17
2 changed files with 12 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ class Trash extends Extension
{
global $user, $page;
if(!$user->can("view_trash")) {
if($event->image->trash===true && !$user->can("view_trash")) {
$page->set_mode(PageMode::REDIRECT);
$page->set_redirect(make_link("post/list"));
}