From 70ea669b3f6620e5abd0effb40d5b34840f0ed2a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 6 Jun 2026 00:52:09 +0200 Subject: [PATCH] Doc --- htdocs/compta/cashcontrol/cashcontrol_card.php | 2 +- htdocs/core/modules/modTakePos.class.php | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) 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;