17 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
71 parent::initializeArguments();
73 $this->registerArgument(
'role',
'string',
'The usergroup (either the usergroup uid or its title).');
84 $role = $arguments[
'role'];
85 if (!is_array(
$GLOBALS[
'BE_USER']->userGroups)) {
88 if (is_numeric($role)) {
89 foreach (
$GLOBALS[
'BE_USER']->userGroups as $userGroup) {
90 if ((
int)$userGroup[
'uid'] === (
int)$role) {
95 foreach (
$GLOBALS[
'BE_USER']->userGroups as $userGroup) {
96 if ($userGroup[
'title'] === $role) {