From de77f9a2af2e29640608e0436d6500bc511f5e46 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 2 Apr 2011 13:38:25 +0000 Subject: Refs #3277 merged fix for recursive delete and disabled entities into trunk git-svn-id: http://code.elgg.org/elgg/trunk@8909 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index a4da347ec..742630cc7 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1493,6 +1493,8 @@ function delete_entity($guid, $recursive = true) { // Make it slightly harder to guess $__RECURSIVE_DELETE_TOKEN = md5(elgg_get_logged_in_user_guid()); + $entity_disable_override = access_get_show_hidden_status(); + access_show_hidden_entities(true); $sub_entities = get_data("SELECT * from {$CONFIG->dbprefix}entities WHERE container_guid=$guid or owner_guid=$guid @@ -1503,6 +1505,7 @@ function delete_entity($guid, $recursive = true) { } } + access_show_hidden_entities($entity_disable_override); $__RECURSIVE_DELETE_TOKEN = null; } -- cgit v1.2.3