Is it possible to hide links and disable access to the Users page and related pages with ACL? I need the users list to be viewable to only certain groups.
<li class="<?php echo $highlight == 'users' ? 'is-active' : '';?>">
<a href="<?php echo ESR::users();?>" class="es-navbar__footer-link">
<i class="fa fa-users"></i>
<span>
<?php echo JText::_('COM_EASYSOCIAL_TOOLBAR_PEOPLE');?>
</span>
</a>
</li>
// retrieve the current logged in user data
$user = JFactory::getUser();
// restricted this user group id unable to access user page
$sellerGroup = 2;
// if the current logged in user belong to these restricted group then don't allow access
if (in_array($sellerGroup, $user->groups)) {
echo "unable to access";
} else {
echo "can access";
}
exit;