diff options
| author | winter | 2025-01-27 21:28:29 +0000 |
|---|---|---|
| committer | winter | 2025-01-27 21:28:29 +0000 |
| commit | 8fc56f62bad41a30060b527ee2707c07946e0edf (patch) | |
| tree | c02bdcf467aafc8c281f9ce2c4703f56ea54de30 /templates | |
| parent | 953464284df0b6c05a8a9b61dd66befa64181083 (diff) | |
prevent deleting remote notes
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/note.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/note.php b/templates/note.php index 74ce566..4d05554 100644 --- a/templates/note.php +++ b/templates/note.php @@ -99,7 +99,7 @@ if ($user != null) { global $note; $user = UserAccount::findByCurrentSession(); ?> - <?php if ($note->author == $user?->actor || $user?->isAdmin): ?> + <?php if ($note->author->isLocal && ($note->author == $user?->actor || $user?->isAdmin)): ?> <li> <button hx-delete="/fragment/note/<?= $note->id ?>" hx-confirm="<?= __('note.action.delete.confirmation') ?>" hx-target="closest .note" |
