This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
<?php
/**
* @author mabi
*/
function smarty_block_ca($params, $content, &$smarty, &$repeat) {
$user = $smarty->get_template_vars(Admin::SMARTY_NAME);
if(isset($params['role'])) {
$role = $params['role'];
} else {
$role = Admin::SMARTY_DEFAULT_ACCESS;
}
$access = $user->CheckAccess($role);
if($access) {
return $content;
} else {
return '';
}
}
?>