aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <redmatrix@redmatrix.me>2015-04-08 17:54:52 -0700
committerfriendica <redmatrix@redmatrix.me>2015-04-08 17:54:52 -0700
commit37afc8184751556107a23910be094c80990901dd (patch)
treec2acab538231bebaef62522eeddffcdd2418b5e7 /include
parenta73dbb307347735db3bc076aaa5f92b3e90361fa (diff)
downloadvolse-hubzilla-37afc8184751556107a23910be094c80990901dd.tar.gz
volse-hubzilla-37afc8184751556107a23910be094c80990901dd.tar.bz2
volse-hubzilla-37afc8184751556107a23910be094c80990901dd.zip
update features, allow sys account page deletion
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 4b83ce3e3..1078103dc 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3994,6 +3994,11 @@ function drop_item($id,$interactive = true,$stage = DROPITEM_NORMAL,$force = fal
if(local_channel() && local_channel() == $item['uid'])
$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'])
+ $ok_to_delete = true;
+
// author deletion
$observer = $a->get_observer();
if($observer && $observer['xchan_hash'] && ($observer['xchan_hash'] === $item['author_xchan']))