Merge pull request #22921 from atm-steve/fix_filter_by_hierarchy_on_project_task_by_month

fix: filter user by hierarchy on task
This commit is contained in:
Laurent Destailleur 2022-11-22 21:39:37 +01:00 committed by GitHub
commit 4628fc6313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,7 +419,7 @@ if (!empty($conf->categorie->enabled))
// If the user can view user other than himself
$moreforfilter .= '<div class="divsearchfield">';
$moreforfilter .= '<div class="inline-block hideonsmartphone"></div>';
$includeonly = 'hierachyme';
$includeonly = 'hierarchyme';
if (empty($user->rights->user->user->lire)) {
$includeonly = array($user->id);
}