aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-07-13 19:59:52 +0200
committerMario Vavti <mario@mariovavti.com>2019-07-13 19:59:52 +0200
commitdb6e4d1c32f4260873b3fd1f9367390798c09ce6 (patch)
tree72e9c95efdf4ad62dad06657650934cc867fbd3e /include
parente5370971d6c7c554cafd84403e14037e6082317f (diff)
downloadvolse-hubzilla-db6e4d1c32f4260873b3fd1f9367390798c09ce6.tar.gz
volse-hubzilla-db6e4d1c32f4260873b3fd1f9367390798c09ce6.tar.bz2
volse-hubzilla-db6e4d1c32f4260873b3fd1f9367390798c09ce6.zip
admin should be allowed to delete any item
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php9
1 files changed, 4 insertions, 5 deletions
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