fix some problems

This commit is contained in:
Lamrani Abdel
2023-06-05 16:15:52 +02:00
parent 1436ff7a88
commit 0f4feec3ff
7 changed files with 42 additions and 57 deletions

View File

@@ -268,7 +268,7 @@ class modMyModule extends DolibarrModules
$r = 0;
// Add here entries to declare new permissions
/* BEGIN MODULEBUILDER PERMISSIONS */
$this->rights[$r][0] = $this->numero . sprintf("%02d", $r + 1); // Permission id (must not be already used)
/*$this->rights[$r][0] = $this->numero . sprintf("%02d", $r + 1); // Permission id (must not be already used)
$this->rights[$r][1] = 'Read objects of MyModule'; // Permission label
$this->rights[$r][4] = 'myobject';
$this->rights[$r][5] = 'read'; // In php code, permission will be checked by test if ($user->rights->mymodule->myobject->read)
@@ -282,7 +282,7 @@ class modMyModule extends DolibarrModules
$this->rights[$r][1] = 'Delete objects of MyModule'; // Permission label
$this->rights[$r][4] = 'myobject';
$this->rights[$r][5] = 'delete'; // In php code, permission will be checked by test if ($user->rights->mymodule->myobject->delete)
$r++;
$r++;*/
/* END MODULEBUILDER PERMISSIONS */
// Main menu entries to add