Fix: Bad condition to enable menu

This commit is contained in:
Laurent Destailleur 2011-02-25 18:37:15 +00:00
parent 6a590ffec8
commit 5f42ab9d65
3 changed files with 15 additions and 3 deletions

View File

@ -100,6 +100,7 @@ class modCashDesk extends DolibarrModules
'url'=>'/cashdesk/index.php',
'langs'=>'cashdesk', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
'position'=>100,
'enabled'=>'$conf->cashdesk->enabled',
'perms'=>1, // Use 'perms'=>'1' if you want your menu with no permission rules
'target'=>'pointofsale',
'user'=>0); // 0=Menu for internal users, 1=external users, 2=both

View File

@ -124,8 +124,8 @@ class modFTP extends DolibarrModules
'url'=>'/ftp/index.php',
'langs'=>'ftp',
'position'=>100,
'perms'=>'$user->rights->ftp->read || $user->rights->ftp->write || $user->rights->ftp->setup',
'enabled'=>1,
'enabled'=>'$conf->ftp->enabled',
'perms'=>'$user->rights->ftp->read || $user->rights->ftp->write || $user->rights->ftp->setup',
'target'=>'',
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
$r++;

View File

@ -90,7 +90,18 @@ class modMantis extends DolibarrModules
//------
$r=0;
$this->menu[$r]=array('fk_menu'=>0,'type'=>'top','titre'=>'BugTracker','mainmenu'=>'mantis','leftmenu'=>'1','url'=>'/mantis/mantis.php','langs'=>'other','position'=>100,'perms'=>'','target'=>'','user'=>0);
$this->menu[$r]=array('fk_menu'=>0,
'type'=>'top',
'titre'=>'BugTracker',
'mainmenu'=>'mantis',
'leftmenu'=>'1',
'url'=>'/mantis/mantis.php',
'langs'=>'other',
'position'=>100,
'enabled'=>'$conf->mantis->enabled',
'perms'=>'',
'target'=>'',
'user'=>0);
$r++;
}