diff options
author | friendica <redmatrix@redmatrix.me> | 2015-04-08 17:54:52 -0700 |
---|---|---|
committer | friendica <redmatrix@redmatrix.me> | 2015-04-08 17:54:52 -0700 |
commit | 37afc8184751556107a23910be094c80990901dd (patch) | |
tree | c2acab538231bebaef62522eeddffcdd2418b5e7 /mod | |
parent | a73dbb307347735db3bc076aaa5f92b3e90361fa (diff) | |
download | volse-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.php | 4 |
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; |