fix: Permissions Array-Format korrigiert (Index 4=object, 5=perm)
All checks were successful
Deploy bericht / deploy (push) Successful in 1s
All checks were successful
Deploy bericht / deploy (push) Successful in 1s
Tab Bericht erschien nicht, weil drei der vier Rechte mit falschem
Array-Index angelegt wurden und damit hasRight('bericht','read') immer
false zurückgab. Nach Fix Modul einmal deaktivieren + reaktivieren,
damit die fehlenden Rechte in llx_rights_def geschrieben werden.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
[deploy]
This commit is contained in:
parent
69d52ffef1
commit
a46ac84a93
1 changed files with 8 additions and 4 deletions
|
|
@ -98,19 +98,23 @@ class modBericht extends DolibarrModules
|
|||
$r = 0;
|
||||
$this->rights[$r][0] = $this->numero . '01';
|
||||
$this->rights[$r][1] = 'Berichte lesen';
|
||||
$this->rights[$r][4] = 'read';
|
||||
$this->rights[$r][4] = 'bericht';
|
||||
$this->rights[$r][5] = 'read';
|
||||
$r++;
|
||||
$this->rights[$r][0] = $this->numero . '02';
|
||||
$this->rights[$r][1] = 'Berichte erstellen und bearbeiten';
|
||||
$this->rights[$r][4] = 'write';
|
||||
$this->rights[$r][4] = 'bericht';
|
||||
$this->rights[$r][5] = 'write';
|
||||
$r++;
|
||||
$this->rights[$r][0] = $this->numero . '03';
|
||||
$this->rights[$r][1] = 'Berichte löschen';
|
||||
$this->rights[$r][4] = 'delete';
|
||||
$this->rights[$r][4] = 'bericht';
|
||||
$this->rights[$r][5] = 'delete';
|
||||
$r++;
|
||||
$this->rights[$r][0] = $this->numero . '04';
|
||||
$this->rights[$r][1] = 'Modul Bericht administrieren (Templates verwalten)';
|
||||
$this->rights[$r][4] = 'admin';
|
||||
$this->rights[$r][4] = 'bericht';
|
||||
$this->rights[$r][5] = 'admin';
|
||||
$r++;
|
||||
|
||||
$this->menu = array();
|
||||
|
|
|
|||
Loading…
Reference in a new issue