/**
  * @copydoc PKPHandler::authorize()
  */
 function authorize($request, &$args, $roleAssignments)
 {
     // If a galley ID was specified, authorize it.
     if ($request->getUserVar('articleGalleyId')) {
         import('classes.security.authorization.GalleyRequiredPolicy');
         $this->addPolicy(new GalleyRequiredPolicy($request, $args));
     }
     return parent::authorize($request, $args, $roleAssignments);
 }
 /**
  * @see PKPHandler::authorize()
  * @param $request PKPRequest
  * @param $args array
  * @param $roleAssignments array
  */
 function authorize($request, &$args, $roleAssignments)
 {
     // If a publication ID was specified, authorize it.
     if ($request->getUserVar('representationId')) {
         import('lib.pkp.classes.security.authorization.internal.RepresentationRequiredPolicy');
         $this->addPolicy(new RepresentationRequiredPolicy($request, $args));
     }
     return parent::authorize($request, $args, $roleAssignments);
 }