Skip to content
Snippets Groups Projects
Commit 7f0d031a authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #5586 add secondary entities in note restriction

parent d7f0993d
No related branches found
No related tags found
No related merge requests found
......@@ -175,9 +175,9 @@ switch ($mode) {
if ($core_tools->test_service('notes_restriction', 'notes', false)) {
if (!empty($_SESSION['user']['entities'])) {
foreach ($_SESSION['user']['entities'] as $tmpEntity) {
if($tmpEntity['ENTITY_ID'] == $_SESSION['user']['primaryentity']['id']){
//if($tmpEntity['ENTITY_ID'] == $_SESSION['user']['primaryentity']['id']){
$entitiesForRestriction[] = $tmpEntity['ENTITY_ID'];
}
//}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment