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 */')); } }