From b958a1dd6249ce28ff8521b1624dc9211f37a845 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Wed, 13 Nov 2024 13:52:41 +0100 Subject: [PATCH] fixed: private static pages are not trashable --- classes/ColdTrick/StaticPages/Permissions.php | 2 +- elgg-plugin.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/ColdTrick/StaticPages/Permissions.php b/classes/ColdTrick/StaticPages/Permissions.php index f990e54..28a80e5 100644 --- a/classes/ColdTrick/StaticPages/Permissions.php +++ b/classes/ColdTrick/StaticPages/Permissions.php @@ -104,7 +104,7 @@ public static function containerPermissionsCheck(\Elgg\Event $event): ?bool { /** * Allow access to (private) static pages during certain actions * - * @param \Elgg\Event $event 'action:validate', 'entity/delete'|'entity_attachments/add' + * @param \Elgg\Event $event 'action:validate', 'entity/delete'|'entity/trash'|'entity_attachments/add' * * @return void */ diff --git a/elgg-plugin.php b/elgg-plugin.php index 0c4c482..fdcd0ad 100644 --- a/elgg-plugin.php +++ b/elgg-plugin.php @@ -127,6 +127,9 @@ 'entity/delete' => [ '\ColdTrick\StaticPages\Permissions::allowActionAccessToPrivateEntity' => [], ], + 'entity/trash' => [ + '\ColdTrick\StaticPages\Permissions::allowActionAccessToPrivateEntity' => [], + ], 'entity_attachments/add' => [ '\ColdTrick\StaticPages\Permissions::allowActionAccessToPrivateEntity' => [], ],