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 c537b4b commit 15503f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion controllers/grid/users/chapter/ChapterGridHandler.inc.php
Expand Up @@ -66,7 +66,7 @@ function initialize(&$request) {
parent::initialize($request);

// Retrieve the authorized monograph
$this->_monograph =& $this->getAuthorizedContext(ASSOC_TYPE_MONOGRAPH);
$this->_monograph =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH);

Locale::requireComponents(array(LOCALE_COMPONENT_OMP_DEFAULT_SETTINGS));
// Basic grid configuration
Expand Down
Expand Up @@ -73,7 +73,7 @@ function initialize(&$request) {
parent::initialize($request);

// Retrieve the authorized submission.
$this->_submission =& $this->getAuthorizedContext(ASSOC_TYPE_MONOGRAPH);
$this->_submission =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH);

// Load submission-specific translations
Locale::requireComponents(array(LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_PKP_USER, LOCALE_COMPONENT_OMP_EDITOR));
Expand Down
Expand Up @@ -68,7 +68,7 @@ function initialize(&$request) {
parent::initialize($request);

// Retrieve the authorized monograph.
$this->_monograph =& $this->getAuthorizedContext(ASSOC_TYPE_MONOGRAPH);
$this->_monograph =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH);

// Load submission-specific translations
Locale::requireComponents(array(LOCALE_COMPONENT_OMP_AUTHOR, LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_PKP_USER, LOCALE_COMPONENT_OMP_DEFAULT_SETTINGS));
Expand Down
2 changes: 1 addition & 1 deletion lib/pkp
Submodule pkp updated from ebf023 to 042601

0 comments on commit 15503f8

Please sign in to comment.