From e4188bf026d3f9fb23bb604fb03eeeb78d85bd92 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 24 Feb 2010 15:26:54 +0000 Subject: [PATCH] Fix: bad user rights --- htdocs/projet/tasks/note.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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 '
'; } }