diff --git a/htdocs/projet/tasks/contact.php b/htdocs/projet/tasks/contact.php index 29a74d1a918..add9f35dec8 100644 --- a/htdocs/projet/tasks/contact.php +++ b/htdocs/projet/tasks/contact.php @@ -38,7 +38,7 @@ $taskid = isset($_GET["id"])?$_GET["id"]:''; // Security check if ($user->societe_id) $socid=$user->societe_id; //$result = restrictedArea($user, 'projet', $taskid, 'projet_task'); -if (!$user->rights->projet->task->lire) accessforbidden(); +if (!$user->rights->projet->lire) accessforbidden(); /* @@ -46,7 +46,7 @@ if (!$user->rights->projet->task->lire) accessforbidden(); */ // Add new contact -if ($_POST["action"] == 'addcontact' && $user->rights->projet->task->creer) +if ($_POST["action"] == 'addcontact' && $user->rights->projet->creer) { $result = 0; @@ -77,7 +77,7 @@ if ($_POST["action"] == 'addcontact' && $user->rights->projet->task->creer) } } // modification d'un contact. On enregistre le type -if ($_POST["action"] == 'updateline' && $user->rights->projet->task->creer) +if ($_POST["action"] == 'updateline' && $user->rights->projet->creer) { $task = new Task($db); if ($task->fetch($taskid)) @@ -103,7 +103,7 @@ if ($_POST["action"] == 'updateline' && $user->rights->projet->task->creer) } // bascule du statut d'un contact -if ($_GET["action"] == 'swapstatut' && $user->rights->projet->task->creer) +if ($_GET["action"] == 'swapstatut' && $user->rights->projet->creer) { $task = new Task($db); if ($task->fetch($taskid)) @@ -129,7 +129,7 @@ if ($_GET["action"] == 'swapstatut' && $user->rights->projet->task->creer) } // Efface un contact -if ($_GET["action"] == 'deleteline' && $user->rights->projet->task->creer) +if ($_GET["action"] == 'deleteline' && $user->rights->projet->creer) { $task = new Task($db); $task->fetch($taskid); @@ -221,7 +221,7 @@ if ($id > 0 || ! empty($ref)) * Ajouter une ligne de contact * Non affiche en mode modification de ligne */ - if ($_GET["action"] != 'editline' && $user->rights->projet->task->creer) + if ($_GET["action"] != 'editline' && $user->rights->projet->creer) { print '