From 9690b2392e5e77d696776fa54a22e27eb3ff532e Mon Sep 17 00:00:00 2001 From: iamlkeno Date: Thu, 11 Apr 2019 09:52:52 -0300 Subject: [PATCH 1/2] Remove typehint to allow false, if parent not ingested yet --- islandora.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/islandora.module b/islandora.module index a72f4fb7c..161e04869 100644 --- a/islandora.module +++ b/islandora.module @@ -920,14 +920,14 @@ function islandora_object_datastream_tokened_access_callback($perm, $object = NU * * @param array $perms * Array of user permission to test for. - * @param AbstractObject $object - * The object to test, if NULL given the object doesn't exist or is + * @param AbstractObject|bool|NULL $object + * The object to test, if NULL or false given the object doesn't exist or is * inaccessible. * * @return bool * TRUE if the user is allowed to access this object, FALSE otherwise. */ -function islandora_object_manage_access_callback(array $perms, AbstractObject $object = NULL) { +function islandora_object_manage_access_callback(array $perms, $object = NULL) { module_load_include('inc', 'islandora', 'includes/utilities'); if (!$object && !islandora_describe_repository()) { From f19221d9d598e1b3a5ec50012e082b77ed4d4a8f Mon Sep 17 00:00:00 2001 From: iamlkeno Date: Mon, 22 Apr 2019 08:59:09 -0300 Subject: [PATCH 2/2] Update parameter type capitalization --- islandora.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora.module b/islandora.module index 161e04869..f8738259d 100644 --- a/islandora.module +++ b/islandora.module @@ -920,7 +920,7 @@ function islandora_object_datastream_tokened_access_callback($perm, $object = NU * * @param array $perms * Array of user permission to test for. - * @param AbstractObject|bool|NULL $object + * @param AbstractObject|bool|null $object * The object to test, if NULL or false given the object doesn't exist or is * inaccessible. *