commit
13e22647f5
@ -242,6 +242,7 @@ class Tickets extends DolibarrApi
|
|||||||
$socid = DolibarrApiAccess::$user->socid;
|
$socid = DolibarrApiAccess::$user->socid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$search_sale = null;
|
||||||
// If the internal user must only see his customers, force searching by him
|
// If the internal user must only see his customers, force searching by him
|
||||||
if (!DolibarrApiAccess::$user->rights->societe->client->voir && !$socid) {
|
if (!DolibarrApiAccess::$user->rights->societe->client->voir && !$socid) {
|
||||||
$search_sale = DolibarrApiAccess::$user->id;
|
$search_sale = DolibarrApiAccess::$user->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user