mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
feat: token list tab working
This commit is contained in:
@@ -226,6 +226,13 @@ function user_prepare_head(User $object)
|
||||
$h++;
|
||||
}
|
||||
|
||||
if (!empty($object->api_key)) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/user/api_token/list.php?id='.$object->id;
|
||||
$head[$h][1] = $langs->trans("ApiToken");
|
||||
$head[$h][2] = 'apitoken';
|
||||
$h++;
|
||||
}
|
||||
|
||||
complete_head_from_modules($conf, $langs, $object, $head, $h, 'user', 'remove');
|
||||
|
||||
return $head;
|
||||
|
||||
Reference in New Issue
Block a user