mirror of
https://github.com/friendica/friendica
synced 2025-04-25 18:30:11 +00:00
Don't allow deletion of public posts
This commit is contained in:
parent
5d2fce417d
commit
77c423ec04
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ class Post extends BaseObject
|
||||||
'delete' => $delete,
|
'delete' => $delete,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!local_user()) {
|
if (!local_user() || ($item['uid'] == 0)) {
|
||||||
$drop = false;
|
$drop = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue