Update box_project.php
This commit is contained in:
parent
d93a597a1e
commit
262d889700
@ -100,7 +100,7 @@ class box_project extends ModeleBoxes
|
||||
$sql = "SELECT p.rowid, p.ref, p.title, p.fk_statut, p.public";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."projet as p";
|
||||
$sql.= " WHERE p.fk_statut = 1"; // Only open projects
|
||||
$sql .= " AND entity IN (".getEntity('projet').")"; // Only current entity or severals if permission ok
|
||||
$sql .= " AND entity IN (".getEntity('project').")"; // Only current entity or severals if permission ok
|
||||
if (! $user->rights->projet->all->lire) $sql.= " AND p.rowid IN (".$projectsListId.")"; // public and assigned to, or restricted to company for external users
|
||||
|
||||
$sql.= " ORDER BY p.datec DESC";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user