diff --git a/htdocs/projet/tasks/note.php b/htdocs/projet/tasks/note.php index 15b00607be2..29c785331d3 100644 --- a/htdocs/projet/tasks/note.php +++ b/htdocs/projet/tasks/note.php @@ -196,19 +196,17 @@ if ($id > 0 || ! empty($ref)) /* * Actions */ - print '
'; - if ($user->rights->projet->creer && $_GET['action'] <> 'edit') + + if ((($user->rights->projet->creer && $userAccess) || $user->rights->projet->all->creer) && $_GET['action'] <> 'edit') { - if ($userAccess) - { - print ''.$langs->trans('Modify').''; - } - else - { - print ''.$langs->trans('Modify').''; - } + print ''.$langs->trans('Modify').''; } + else + { + print ''.$langs->trans('Modify').''; + } + print '
'; } }