Skip to content

Commit

Permalink
Fix: Bad condition to enable menu
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 25, 2011
1 parent 6a590ff commit 5f42ab9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions htdocs/includes/modules/modCashDesk.class.php
Expand Up @@ -100,6 +100,7 @@ function modCashDesk ($DB)
'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
Expand Down
4 changes: 2 additions & 2 deletions htdocs/includes/modules/modFTP.class.php
Expand Up @@ -124,8 +124,8 @@ function modFTP($DB)
'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++;
Expand Down
13 changes: 12 additions & 1 deletion htdocs/includes/modules/modMantis.class.php
Expand Up @@ -90,7 +90,18 @@ function modMantis($DB)
//------
$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++;

}
Expand Down

0 comments on commit 5f42ab9

Please sign in to comment.