diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 6609d6c3968..c02f2149de0 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -1580,7 +1580,13 @@ if ((empty($conf->global->PRODUIT_CUSTOMER_PRICES) || $action == 'showlog_defaul print ''; // User - print ''.img_object($langs->trans("ShowUser"), 'user').' '.$objp->login.''; + print ''; + if ($objp->user_id > 0) { + $userstatic = new User($db); + $userstatic->fetch($objp->user_id); + print $userstatic->getNomUrl(1, '', 0, 0, 24, 0, 'login'); + } + print ''; // Action if ($user->rights->produit->supprimer) @@ -1944,7 +1950,8 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) $userstatic = new User($db); $userstatic->fetch($line->fk_user); print ''; - print $userstatic->getLoginUrl(1); + print $userstatic->getNomUrl(1, '', 0, 0, 24, 0, 'login'); + //print $userstatic->getLoginUrl(1); print ''; print ''; } @@ -2153,7 +2160,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) $userstatic = new User($db); $userstatic->fetch($line->fk_user); print ''; - print $userstatic->getLoginUrl(1); + print $userstatic->getNomUrl(1, '', 0, 0, 24, 0, 'login'); print ''; // Todo Edit or delete button diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 104ff767299..16db733b457 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -2461,8 +2461,8 @@ class User extends CommonObject $linkstart = ''; $linkend = ''; - //Check user's rights to see an other user - if ((!$user->rights->user->user->lire && $this->id != $user->id)) $option = 'nolink'; + //Check user's rights to see an other user + if ((!$user->rights->user->user->lire && $this->id != $user->id)) $option = 'nolink'; if ($option == 'xxx') {