Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
You can use a condition to refuse anywho is not in a specific group.
$user = JFactory::getUser();
$groups = $user->groups;
if (in_array(8, $groups)):
//only enter itif the user is in the group 8 (group 8 = Super-Administrator)
endif;
You can use a condition to refuse anywho is not in a specific group.
$user = JFactory::getUser();
$groups = $user->groups;
if (in_array(8, $groups)):
//only enter it the user is in the group 8 (Super-Administrator)
endif;
You can use a condition to refuse anywho is not in a specific group.
$user = JFactory::getUser();
$groups = $user->groups;
if (in_array(8, $groups)):
//only enter if the user is in the group 8 (group 8 = Super-Administrator)
endif;
You can use a condition to refuse anywho is not in a specific group.
$user = JFactory::getUser();
$groups = $user->groups;
if (in_array(8, $groups)):
//only enter it the user is in the group 8 (Super-Administrator)
endif;