diff --git a/wire/modules/Process/ProcessPageList/ProcessPageListActions.php b/wire/modules/Process/ProcessPageList/ProcessPageListActions.php index 8602dfd6..4cb34a24 100644 --- a/wire/modules/Process/ProcessPageList/ProcessPageListActions.php +++ b/wire/modules/Process/ProcessPageList/ProcessPageListActions.php @@ -162,7 +162,7 @@ public function ___getExtraActions(Page $page) { } } - if($this->superuser) { + if($user->hasPermission('page-delete', $page)) { $trashIcon = " "; if($page->trashable()) { $extras['trash'] = array( @@ -285,4 +285,4 @@ public function ___processAction(Page $page, $action) { return $result; } -} \ No newline at end of file +}