From 4fa99a86ed8a1cd274f1984e999474189b7859cd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 29 May 2013 13:31:57 +0200 Subject: [PATCH] Fix: Bad permissions --- htdocs/societe/note.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/societe/note.php b/htdocs/societe/note.php index 372177c0c89..9605106aec6 100644 --- a/htdocs/societe/note.php +++ b/htdocs/societe/note.php @@ -47,15 +47,14 @@ if ($id > 0) $object->fetch($id); /******************************************************************************/ /* Actions */ /******************************************************************************/ - -if ($action == 'setnote_public' && $user->rights->propale->creer) +if ($action == 'setnote_public' && $user->rights->societe->creer) { $object->fetch($id); $result=$object->update_note(dol_html_entity_decode(GETPOST('note_public'), ENT_QUOTES),'_public'); if ($result < 0) setEventMessage($object->error,'errors'); } -else if ($action == 'setnote_private' && $user->rights->propale->creer) +else if ($action == 'setnote_private' && $user->rights->societe->creer) { $object->fetch($id); $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES),'_private');