From aba19555cae618000fdc5eb87033a2160baacbec Mon Sep 17 00:00:00 2001 From: William Panting Date: Tue, 13 Aug 2013 12:05:27 -0300 Subject: [PATCH] test working again --- tests/islandora_hooked_access_test.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/islandora_hooked_access_test.module b/tests/islandora_hooked_access_test.module index de417738..e69fc1cc 100644 --- a/tests/islandora_hooked_access_test.module +++ b/tests/islandora_hooked_access_test.module @@ -23,6 +23,9 @@ function islandora_hooked_access_test_islandora_object_access($op, $object, $use * Implements hook_islandora_datastream_access(). */ function islandora_hooked_access_test_islandora_datastream_access($op, $datastream, $user) { + if ($op == FEDORA_PURGE) { + return FALSE; + } if (isset($_SESSION['islandora_hooked_access_test']) && $_SESSION['islandora_hooked_access_test'] === func_get_args()) { return TRUE; }