$acl = JFactory::getUser()->getAuthorisedViewLevels();
$db=JFactory::getDbo();
$query=$db->getQuery(true);
$query->select('title')->from('#__viewlevels')->where('id in ('.implode(',',$acl).')');
$db->setQuery($query);
$accessLevels=$db->loadColumn();
$formattedAcl='<span class="label label-info">'.implode('</span> <span class="label label-info">',$accessLevels).'</span>';
echo '<div style="float:right">'.$formattedAcl.'</div>';
it works well but i want to mite public acl in all users profile and user list. for example i have 3 acl as : public- registered and pro. i just want to show pro acl in user profile and omit two others.
is it possible to do this?