Fix: Constraints must be stored in the field "enabled" ix llx_menu.
llx_constraint is deprecated
This commit is contained in:
parent
306bad31be
commit
35ba67c3fe
@ -150,8 +150,7 @@ class modAgenda extends DolibarrModules
|
||||
'position'=>100,
|
||||
'perms'=>'$user->rights->agenda->myactions->read',
|
||||
'target'=>'',
|
||||
'user'=>0,
|
||||
'constraint'=>'$conf->agenda->enabled');
|
||||
'user'=>0);
|
||||
$r++;
|
||||
|
||||
// Exports
|
||||
|
||||
@ -103,8 +103,8 @@ class modCashDesk extends DolibarrModules
|
||||
'position'=>100,
|
||||
'perms'=>1, // Use 'perms'=>'1' if you want your menu with no permission rules
|
||||
'target'=>'',
|
||||
'user'=>0, // 0=Menu for internal users, 1=external users, 2=both
|
||||
'constraint'=>'$conf->cashdesk->enabled'); //Constraint
|
||||
'user'=>0); // 0=Menu for internal users, 1=external users, 2=both
|
||||
|
||||
$r++;
|
||||
|
||||
// This is to declare a Left Menu entry:
|
||||
|
||||
@ -132,8 +132,7 @@ class modECM extends DolibarrModules
|
||||
'position'=>100,
|
||||
'perms'=>'$user->rights->ecm->download || $user->rights->ecm->upload || $user->rights->ecm->setup',
|
||||
'target'=>'',
|
||||
'user'=>0,
|
||||
'constraint'=>'$conf->ecm->enabled');
|
||||
'user'=>0);
|
||||
$r++;
|
||||
|
||||
// Left menu linked to top menu
|
||||
|
||||
@ -108,8 +108,7 @@ class modPhenix extends DolibarrModules
|
||||
'position'=>100,
|
||||
'perms'=>'',
|
||||
'target'=>'',
|
||||
'user'=>0,
|
||||
'constraint'=>'$conf->phenix->enabled');
|
||||
'user'=>0);
|
||||
$r++;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user