From 37afc8184751556107a23910be094c80990901dd Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 8 Apr 2015 17:54:52 -0700 Subject: update features, allow sys account page deletion --- mod/item.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index fa40aea03..45ac4a6aa 100644 --- a/mod/item.php +++ b/mod/item.php @@ -950,6 +950,10 @@ function item_content(&$a) { if(local_channel() && local_channel() == $i[0]['uid']) $local_delete = true; + $sys = get_sys_channel(); + if(is_site_admin() && $sys['channel_id'] == $i[0]['uid']) + $can_delete = true; + $ob_hash = get_observer_hash(); if($ob_hash && ($ob_hash === $i[0]['author_xchan'] || $ob_hash === $i[0]['owner_xchan'] || $ob_hash === $i[0]['source_xchan'])) $can_delete = true; -- cgit v1.2.3