Hi folks,
I can't get my DBRead condition to work
If I use following condition it works fine, but this is too restrictive, because it would disable the form most of the users
When I tried to specifize the condition with the following code it works no more... the goal was to restrict the view of users of the usergroup with the id 16, but let everyone else who is not part of that group see all database entries
greetings
I can't get my DBRead condition to work
If I use following condition it works fine, but this is too restrictive, because it would disable the form most of the users
<?php
$user = JFactory::getUser();
return array( "text39" => $user->get('id'))
?>
When I tried to specifize the condition with the following code it works no more... the goal was to restrict the view of users of the usergroup with the id 16, but let everyone else who is not part of that group see all database entries
<?php
$user = JFactory::getUser();
if($user->get('groups') = 16) {
return array( "text39" => $user->get('id'))
}else {
return array()
}
?>
greetings