Don't allow deletion of public posts

This commit is contained in:
Michael 2018-06-13 19:19:17 +00:00
parent 5d2fce417d
commit 77c423ec04

View File

@ -192,7 +192,7 @@ class Post extends BaseObject
'delete' => $delete,
];
if (!local_user()) {
if (!local_user() || ($item['uid'] == 0)) {
$drop = false;
}