From db6e4d1c32f4260873b3fd1f9367390798c09ce6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 13 Jul 2019 19:59:52 +0200 Subject: admin should be allowed to delete any item --- include/items.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index 4fc659926..84bfc263b 100755 --- a/include/items.php +++ b/include/items.php @@ -3722,13 +3722,12 @@ function drop_item($id,$interactive = true,$stage = DROPITEM_NORMAL) { if(! $interactive) $ok_to_delete = true; - // owner deletion - if(local_channel() && local_channel() == $item['uid']) + // admin deletion + if(is_site_admin()) $ok_to_delete = true; - // sys owned item, requires site admin to delete - $sys = get_sys_channel(); - if(is_site_admin() && $sys['channel_id'] == $item['uid']) + // owner deletion + if(local_channel() && local_channel() == $item['uid']) $ok_to_delete = true; // author deletion -- cgit v1.2.3