Browse Source

update api with new dsid param perm check

pull/544/head
Nelson Hart 10 years ago
parent
commit
8a117ac234
  1. 5
      fedora_repository.api.php

5
fedora_repository.api.php

@ -144,12 +144,15 @@ function hook_fedora_repository_can_ingest($collection_pid) {
* given by user_load or the $user global). The (default) value of NULL will * given by user_load or the $user global). The (default) value of NULL will
* cause permissions to be evaluated for the current user (from the $user * cause permissions to be evaluated for the current user (from the $user
* global). * global).
* @param string $dsid
* A string containing the Fedora object datastream ID on which the operation is to be
* performed.
* *
* @return boolean|null * @return boolean|null
* Either a boolean permitting (TRUE) or forbidding (FALSE) an operation, or * Either a boolean permitting (TRUE) or forbidding (FALSE) an operation, or
* NULL to make no assertion. * NULL to make no assertion.
*/ */
function hook_fedora_repository_check_perm($op, $pid = NULL, $as_user = NULL) { function hook_fedora_repository_check_perm($op, $pid = NULL, $as_user = NULL, $dsid = NULL) {
return NULL; return NULL;
} }

Loading…
Cancel
Save