Skip to content

Commit

Permalink
*5540* Implement validation (authorization) for OMP - fix access from…
Browse files Browse the repository at this point in the history
… handlers to the authorized context
  • Loading branch information
fgrandel committed Jul 13, 2010
1 parent 72882c5 commit d1daa2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/handler/PKPHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ function addPolicy(&$authorizationPolicy, $addToTop = false) {
/**
* Retrieve authorized context objects from the
* decision manager.
* @param $assocType integer
* @param $assocType integer any of the ASSOC_TYPE_* constants
* @return mixed
*/
function &getAuthorizedContext($assocType) {
function &getAuthorizedContextObject($assocType) {
assert(is_a($this->_authorizationDecisionManager, 'AuthorizationDecisionManager'));
return $this->_authorizationDecisionManager->getAuthorizedContext($assocType);
return $this->_authorizationDecisionManager->getAuthorizedContextObject($assocType);
}

/**
Expand Down

0 comments on commit d1daa2c

Please sign in to comment.