From 05a15587780d9215224f92e9b6806fcd2155a890 Mon Sep 17 00:00:00 2001 From: Lamrani Abdel Date: Fri, 3 Feb 2023 11:05:14 +0100 Subject: [PATCH] add checkbox when itit object for generate permission by default --- htdocs/modulebuilder/index.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 2807a8bea6d..236e3f2c3f8 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -1251,17 +1251,6 @@ if ($dirins && $action == 'initobject' && $module && $objectname) { \$this->rights[\$r][5] = 'delete'; \$r++; "; - $rights = $moduleobj->rights; - $rightAdd = explode("\$r++", $rightToadd); - - for ($i=0; $itrans('PermissionAlreadyExist'), null, 'errors'); - } - } - } dolReplaceInFile($moduledescriptorfile, array('/* END MODULEBUILDER PERMISSIONS */' => '/*'.strtoupper($objectname).'*/'.$rightToadd."/*END ".strtoupper($objectname).'*/'."\n\t\t".'/* END MODULEBUILDER PERMISSIONS */')); } }