/**
  * @see PKPHandler::authorize()
  * @param $request PKPRequest
  * @param $args array
  * @param $roleAssignments array
  */
 function authorize(&$request, $args, $roleAssignments)
 {
     $stageId = $request->getUserVar('stageId');
     import('classes.security.authorization.OmpWorkflowStageAccessPolicy');
     $this->addPolicy(new OmpWorkflowStageAccessPolicy($request, $args, $roleAssignments, 'monographId', $stageId));
     return parent::authorize($request, $args, $roleAssignments);
 }
 /**
  * @see classes/controllers/modals/submissionMetadata/SubmissionMetadataHandler::fetch()
  */
 function fetch($args, $request)
 {
     $reviewAssignment = $this->getAuthorizedContextObject(ASSOC_TYPE_REVIEW_ASSIGNMENT);
     $reviewMethod = $reviewAssignment->getReviewMethod();
     if ($reviewMethod == SUBMISSION_REVIEW_METHOD_DOUBLEBLIND) {
         $anonymous = true;
     } else {
         /* SUBMISSION_REVIEW_METHOD_BLIND or _OPEN */
         $anonymous = false;
     }
     $params = array('readOnly' => true, 'anonymous' => $anonymous, 'hideSubmit' => true);
     return parent::fetch($args, $request, $params);
 }
 /**
  * @copydoc PKPHandler::authorize()
  * @param $request PKPRequest
  * @param $args array
  * @param $roleAssignments array
  */
 function authorize($request, &$args, $roleAssignments)
 {
     import('classes.security.authorization.SubmissionAccessPolicy');
     $this->addPolicy(new SubmissionAccessPolicy($request, $args, $roleAssignments));
     return parent::authorize($request, $args, $roleAssignments);
 }