feat: token list tab working

This commit is contained in:
yannis
2025-06-23 16:32:34 +02:00
parent c46f09cac8
commit 42fceb4d05
3 changed files with 247 additions and 0 deletions

View File

@@ -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;