16 import(
'lib.pkp.classes.security.authorization.AuthorizationPolicy');
32 function __construct($request, $operations, $message =
null) {
33 parent::__construct($message);
34 $this->_request =& $request;
38 assert(is_string($operations) || is_array($operations));
39 if (!is_array($operations)) {
40 $operations = array($operations);
42 $this->_operations = $operations;
76 $router = $this->_request->getRouter();
77 $requestedOperation = $router->getRequestedOp($this->_request);
78 assert(!empty($requestedOperation));
79 return in_array($requestedOperation, $this->_operations);