Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove typehint to allow false, if parent object not ingested yet #719

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions islandora.module
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down