aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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 /mod
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 'mod')
-rw-r--r--mod/item.php4
1 files changed, 4 insertions, 0 deletions
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;