From 23665c3f6be742523bd2e31f1e883eaa844927a3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 11 May 2022 10:02:59 +0200 Subject: [PATCH] Tooltip --- htdocs/projet/tasks/time.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index 744a1667f7b..6f04cd16a51 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -905,6 +905,9 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser $linktocreatetimeBtnStatus = -2; $linktocreatetimeHelpText = $langs->trans("NotOwnerOfProject"); } + } else { + $linktocreatetimeBtnStatus = -2; + $linktocreatetimeHelpText = $langs->trans("NotEnoughPermissions"); } $paramsbutton = array('morecss'=>'reposition');