FIX child categories only with good entity rights
fix v9 to develop display only categories with good entity rights ( intradolibarr or via REST API)
This commit is contained in:
parent
a923ef5a6d
commit
c7cdb64087
@ -917,7 +917,8 @@ class Categorie extends CommonObject
|
|||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."categorie";
|
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."categorie";
|
||||||
$sql.= " WHERE fk_parent = ".$this->id;
|
$sql .= " WHERE fk_parent = ".$this->id;
|
||||||
|
$sql .= " AND entity IN (".getEntity('category').")";
|
||||||
|
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
if ($res)
|
if ($res)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user