diff --git a/htdocs/compta/cashcontrol/cashcontrol_card.php b/htdocs/compta/cashcontrol/cashcontrol_card.php index eb62b921fe1..aae6f4aca40 100644 --- a/htdocs/compta/cashcontrol/cashcontrol_card.php +++ b/htdocs/compta/cashcontrol/cashcontrol_card.php @@ -118,7 +118,7 @@ if (GETPOST('attribute', 'aZ09') && isset($extrafields->attributes[$object->tabl // For action 'update_extras', is there a specific permission set for the attribute to update $permissiontoeditextra = dol_eval((string) $extrafields->attributes[$object->table_element]['perms'][GETPOST('attribute', 'aZ09')]); } -$permissiontoreopen = $user->hasRight("takepos", "reopencashclosing"); +$permissiontoreopen = $user->hasRight("takepos", "run"); $sqlfilteronopdate = ''; diff --git a/htdocs/core/modules/modTakePos.class.php b/htdocs/core/modules/modTakePos.class.php index 2e78ac6c8ab..9a42f8b8e56 100644 --- a/htdocs/core/modules/modTakePos.class.php +++ b/htdocs/core/modules/modTakePos.class.php @@ -205,13 +205,6 @@ class modTakePos extends DolibarrModules $this->rights[$r][3] = 0; $this->rights[$r][4] = 'editorderedlines'; - $r++; - $this->rights[$r][0] = 50154; - $this->rights[$r][1] = 'Can reopen a cash closing. Must be reserved to admin support staff only.'; - $this->rights[$r][2] = 'a'; - $this->rights[$r][3] = 0; - $this->rights[$r][4] = 'reopencashclosing'; - // Main menu entries $this->menu = array(); // List of menus to add $r = 0;