Add number of permission in user permission tab

This commit is contained in:
Maxime Kohlhaas 2016-06-04 13:25:56 +02:00
parent d777fca0b9
commit 3718121cee

View File

@ -62,7 +62,7 @@ function user_prepare_head($object)
if ($canreadperms)
{
$head[$h][0] = DOL_URL_ROOT.'/user/perms.php?id='.$object->id;
$head[$h][1] = $langs->trans("UserRights");
$head[$h][1] = $langs->trans("UserRights"). ' <span class="badge">'.($object->nb_rights).'</span>';
$head[$h][2] = 'rights';
$h++;
}