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,
|
'position'=>100,
|
||||||
'perms'=>'$user->rights->agenda->myactions->read',
|
'perms'=>'$user->rights->agenda->myactions->read',
|
||||||
'target'=>'',
|
'target'=>'',
|
||||||
'user'=>0,
|
'user'=>0);
|
||||||
'constraint'=>'$conf->agenda->enabled');
|
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Exports
|
// Exports
|
||||||
|
|||||||
@ -103,8 +103,8 @@ class modCashDesk extends DolibarrModules
|
|||||||
'position'=>100,
|
'position'=>100,
|
||||||
'perms'=>1, // Use 'perms'=>'1' if you want your menu with no permission rules
|
'perms'=>1, // Use 'perms'=>'1' if you want your menu with no permission rules
|
||||||
'target'=>'',
|
'target'=>'',
|
||||||
'user'=>0, // 0=Menu for internal users, 1=external users, 2=both
|
'user'=>0); // 0=Menu for internal users, 1=external users, 2=both
|
||||||
'constraint'=>'$conf->cashdesk->enabled'); //Constraint
|
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// This is to declare a Left Menu entry:
|
// This is to declare a Left Menu entry:
|
||||||
|
|||||||
@ -132,8 +132,7 @@ class modECM extends DolibarrModules
|
|||||||
'position'=>100,
|
'position'=>100,
|
||||||
'perms'=>'$user->rights->ecm->download || $user->rights->ecm->upload || $user->rights->ecm->setup',
|
'perms'=>'$user->rights->ecm->download || $user->rights->ecm->upload || $user->rights->ecm->setup',
|
||||||
'target'=>'',
|
'target'=>'',
|
||||||
'user'=>0,
|
'user'=>0);
|
||||||
'constraint'=>'$conf->ecm->enabled');
|
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Left menu linked to top menu
|
// Left menu linked to top menu
|
||||||
|
|||||||
@ -108,8 +108,7 @@ class modPhenix extends DolibarrModules
|
|||||||
'position'=>100,
|
'position'=>100,
|
||||||
'perms'=>'',
|
'perms'=>'',
|
||||||
'target'=>'',
|
'target'=>'',
|
||||||
'user'=>0,
|
'user'=>0);
|
||||||
'constraint'=>'$conf->phenix->enabled');
|
|
||||||
$r++;
|
$r++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user