Показывать блок роли authenticated user:
<?php
global $user;
if (in_array('authenticated user',$user->roles)) {
return TRUE;
} else {
return FALSE;
}
?>
Не показывать блок роли authenticated user:
<?php
global $user;
if (!in_array('authenticated user',$user->roles)) {
return TRUE;
} else {
return FALSE;
}
?>