purge
This commit is contained in:
parent
7c502d96bb
commit
c159ee9639
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
htdocs/conf/conf.php
|
htdocs/conf/conf.php
|
||||||
documents
|
documents
|
||||||
nbproject
|
nbproject
|
||||||
.settings
|
.settings/
|
||||||
|
|||||||
@ -511,6 +511,7 @@ class Menubase
|
|||||||
$sql = "SELECT m.rowid, m.type, m.fk_menu, m.url, m.titre, m.langs, m.perms, m.enabled, m.target, m.mainmenu, m.leftmenu";
|
$sql = "SELECT m.rowid, m.type, m.fk_menu, m.url, m.titre, m.langs, m.perms, m.enabled, m.target, m.mainmenu, m.leftmenu";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."menu as m";
|
$sql.= " FROM ".MAIN_DB_PREFIX."menu as m";
|
||||||
$sql.= " WHERE m.entity = ".$conf->entity;
|
$sql.= " WHERE m.entity = ".$conf->entity;
|
||||||
|
//$sql.= " WHERE m.entity = 1";
|
||||||
$sql.= " AND m.menu_handler in('".$menu_handler."','all')";
|
$sql.= " AND m.menu_handler in('".$menu_handler."','all')";
|
||||||
if ($type_user == 0) $sql.= " AND m.usertype in (0,2)";
|
if ($type_user == 0) $sql.= " AND m.usertype in (0,2)";
|
||||||
if ($type_user == 1) $sql.= " AND m.usertype in (1,2)";
|
if ($type_user == 1) $sql.= " AND m.usertype in (1,2)";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user