diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php
index 89d658fa01a..15c4627c4d7 100644
--- a/htdocs/core/lib/project.lib.php
+++ b/htdocs/core/lib/project.lib.php
@@ -348,7 +348,7 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
$projectstatic->id=$lines[$i]->fk_project;
$projectstatic->ref=$lines[$i]->projectref;
$projectstatic->public=$lines[$i]->public;
- if ($lines[$i]->public || in_array($lines[$i]->fk_project,$projectsArrayId)) print $projectstatic->getNomUrl(1);
+ if ($lines[$i]->public || in_array($lines[$i]->fk_project,$projectsArrayId) || ! empty($user->rights->projet->all->lire)) print $projectstatic->getNomUrl(1);
else print $projectstatic->getNomUrl(1,'nolink');
if ($showlineingray) print '';
print "";
diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php
index 094ae60c59e..68aa963ca8c 100644
--- a/htdocs/projet/class/project.class.php
+++ b/htdocs/projet/class/project.class.php
@@ -882,15 +882,17 @@ class Project extends CommonObject
$result = '';
$link = '';
$linkend = '';
- $label = '' . $langs->trans("ShowProject") . '';
+ $label='';
+ if ($option != 'nolink') $label = '' . $langs->trans("ShowProject") . '';
if (! empty($this->ref))
- $label .= '
' . $langs->trans('Ref') . ': ' . $this->ref;
+ $label .= ($label?'
':'').'' . $langs->trans('Ref') . ': ' . $this->ref; // The space must be after the : to not being explode when showing the title in img_picto
if (! empty($this->title))
- $label .= '
' . $langs->trans('Label') . ': ' . $this->title;
+ $label .= ($label?'
':'').'' . $langs->trans('Label') . ': ' . $this->title; // The space must be after the : to not being explode when showing the title in img_picto
if ($moreinpopup) $label.='
'.$moreinpopup;
$linkclose = '" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
- if ($option != 'nolink') {
+ if ($option != 'nolink')
+ {
if (preg_match('/\.php$/',$option)) {
$link = '