36 function smarty_block_if_authorized($params, $content, \Smarty_Internal_Template $template, &$repeat) {
38 $permissionManager = ObjectFactory::getInstance(
'permissionManager');
39 if ($permissionManager->authorize($params[
'resource'], $params[
'context'], $params[
'action'])) {
43 return $params[
'alternative_content'];
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...