Skip to content

Commit

Permalink
fixed: private static pages are not trashable
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Nov 13, 2024
1 parent 56021dd commit b958a1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ColdTrick/StaticPages/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
3 changes: 3 additions & 0 deletions elgg-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
'entity/delete' => [
'\ColdTrick\StaticPages\Permissions::allowActionAccessToPrivateEntity' => [],
],
'entity/trash' => [
'\ColdTrick\StaticPages\Permissions::allowActionAccessToPrivateEntity' => [],
],
'entity_attachments/add' => [
'\ColdTrick\StaticPages\Permissions::allowActionAccessToPrivateEntity' => [],
],
Expand Down

0 comments on commit b958a1d

Please sign in to comment.