revert param_ihm

This commit is contained in:
Florian Henry 2013-11-24 18:07:40 +01:00
parent 6615ee7e6f
commit 8f9143cef7
2 changed files with 5 additions and 8 deletions

View File

@ -66,13 +66,10 @@ function user_prepare_head($object)
$h++;
}
//Display this tab only if can updte information
if (!empty($user->admin) || !empty($user->rights->user->self->creer)) {
$head[$h][0] = DOL_URL_ROOT.'/user/param_ihm.php?id='.$object->id;
$head[$h][1] = $langs->trans("UserGUISetup");
$head[$h][2] = 'guisetup';
$h++;
}
$head[$h][0] = DOL_URL_ROOT.'/user/param_ihm.php?id='.$object->id;
$head[$h][1] = $langs->trans("UserGUISetup");
$head[$h][2] = 'guisetup';
$h++;
if (! empty($conf->clicktodial->enabled))
{

View File

@ -258,7 +258,7 @@ else
}
else
{
if (($user->id == $fuser->id || ! empty($user->admin)) && $caneditfield) // Si utilisateur edite = utilisateur courant (pas besoin de droits particulier car il s'agit d'une page de modif d'output et non de données) ou si admin
if ($user->id == $fuser->id || ! empty($user->admin)) // Si utilisateur edite = utilisateur courant (pas besoin de droits particulier car il s'agit d'une page de modif d'output et non de données) ou si admin
{
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=edit&amp;id='.$fuser->id.'">'.$langs->trans("Modify").'</a>';
}