Merge pull request #5207 from annando/multiple-delete

Don't allow deletion of public posts
This commit is contained in:
Hypolite Petovan 2018-06-13 15:49:57 -04:00 committed by GitHub
commit a1455489bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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