update features, allow sys account page deletion

This commit is contained in:
friendica
2015-04-08 17:54:52 -07:00
parent a73dbb3073
commit 37afc81847
5 changed files with 26 additions and 16 deletions

View File

@@ -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']))