src/wcmf/lib/persistence/impl/AbstractMapper.php
protected function authorizationFailedError($resource, $action) {
    // when reading only log the error to avoid errors on the display
    $msg = ObjectFactory::getInstance('message')->
            getText("Authorization failed for action '%0%' on '%1%'.", [$action, $resource]);
    if ($action == PersistenceAction::READ) {
      self::$logger->error($msg."\n".ErrorHandler::getStackTrace());
    }
    else {
      throw new AuthorizationException($msg);
    }
  }
protected function authorizationFailedError($resource, $action) {
    // when reading only log the error to avoid errors on the display
    $msg = ObjectFactory::getInstance('message')->
            getText("Authorization failed for action '%0%' on '%1%'.", [$action, $resource]);
    if ($action == PersistenceAction::READ) {
      self::$logger->error($msg."\n".ErrorHandler::getStackTrace());
    }
    else {
      throw new AuthorizationException($msg);
    }
  }
protected function authorizationFailedError ( $ resource , $ action ) { // when reading only log the error to avoid errors on the display $ msg = ObjectFactory :: getInstance ( 'message' ) -> getText ( "Authorization failed for action '%0%' on '%1%'." , [ $ action , $ resource ] ) ; if ( $ action == PersistenceAction :: READ ) { self :: $ logger -> error ( $ msg . "\n" . ErrorHandler :: getStackTrace ( ) ) ; } else { throw new AuthorizationException ( $ msg ) ; } }
Handle an authorization error.
@param $resource
@param $action
@throws AuthorizationException
Handle an authorization error .