/**
  * @see PKPHandler::authorize()
  */
 function authorize(&$request, $args, $roleAssignments)
 {
     $stageId = (int) $request->getUserVar('stageId');
     import('classes.security.authorization.OmpWorkflowStageAccessPolicy');
     $this->addPolicy(new OmpWorkflowStageAccessPolicy($request, $args, $roleAssignments, 'monographId', $stageId));
     return parent::authorize($request, $args, $roleAssignments);
 }
 /**
  * @copydoc PKPHandler::authorize()
  */
 function authorize($request, &$args, $roleAssignments, $stageId)
 {
     import('classes.security.authorization.WorkflowStageAccessPolicy');
     // context-specific.
     $this->addPolicy(new WorkflowStageAccessPolicy($request, $args, $roleAssignments, 'submissionId', $stageId), true);
     return parent::authorize($request, $args, $roleAssignments);
 }
 /**
  * @copydoc PKPHandler::authorize()
  */
 function authorize($request, &$args, $roleAssignments, $stageId = null)
 {
     import('lib.pkp.classes.security.authorization.WorkflowStageAccessPolicy');
     // context-specific.
     import('lib.pkp.classes.security.authorization.SubmissionAccessPolicy');
     // context-specific.
     if ($stageId !== null) {
         $this->addPolicy(new WorkflowStageAccessPolicy($request, $args, $roleAssignments, 'submissionId', $stageId), true);
     } else {
         $this->addPolicy(new SubmissionAccessPolicy($request, $args, $roleAssignments));
     }
     return parent::authorize($request, $args, $roleAssignments);
 }
 /**
  * @copydoc PKPHandler::authorize()
  */
 function authorize($request, &$args, $roleAssignments)
 {
     import('lib.pkp.classes.security.authorization.ContextAccessPolicy');
     $this->addPolicy(new ContextAccessPolicy($request, $roleAssignments));
     return parent::authorize($request, $args, $roleAssignments);
 }
 /**
  * @see PKPHandler::authorize()
  */
 function authorize(&$request, &$args, $roleAssignments)
 {
     import('classes.security.authorization.OmpWorkflowStageAccessPolicy');
     $this->addPolicy(new OmpWorkflowStageAccessPolicy($request, $args, $roleAssignments, 'monographId', WORKFLOW_STAGE_ID_EDITING));
     return parent::authorize($request, $args, $roleAssignments);
 }
 /**
  * @see PKPHandler::authorize()
  * @param $request PKPRequest
  * @param $args array
  * @param $roleAssignments array
  */
 function authorize(&$request, $args, $roleAssignments)
 {
     import('classes.security.authorization.OmpSubmissionAccessPolicy');
     $this->addPolicy(new OmpSubmissionAccessPolicy($request, $args, $roleAssignments));
     return parent::authorize($request, $args, $roleAssignments);
 }