mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 18:32:32 +01:00
use user hasRight
This commit is contained in:
@@ -402,7 +402,7 @@ class modEventOrganization extends DolibarrModules
|
||||
if (empty($user->rights->societe->client->voir)) {
|
||||
$this->export_sql_end[$r] .= ' AND (sc.fk_user = '.(empty($user) ? 0 : $user->id).' OR ac.fk_soc IS NULL)';
|
||||
}
|
||||
if (empty($user->rights->agenda->allactions->read)) {
|
||||
if (!$user->hasRight('agenda', 'allactions', 'read')) {
|
||||
$this->export_sql_end[$r] .= ' AND acr.fk_element = '.(empty($user) ? 0 : $user->id);
|
||||
}
|
||||
$this->export_sql_order[$r] = ' ORDER BY ac.datep';
|
||||
|
||||
Reference in New Issue
Block a user