Arantor commited on 2013-03-04 09:32:55
Showing 1 changed files, with 1 additions and 1 deletions.
Fix for multiple department access bug, thanks to clarinet on the SD forum.
... | ... |
@@ -364,7 +364,7 @@ function shd_load_user_perms() |
364 | 364 |
foreach ($perm_list as $perm => $value) |
365 | 365 |
{ |
366 | 366 |
if ($value == ROLEPERM_ALLOW) |
367 |
- $user_info['shd_permissions'][$perm] = $depts[$role]; |
|
367 |
+ $user_info['shd_permissions'][$perm] = isset($user_info['shd_permissions'][$perm]) ? array_merge($user_info['shd_permissions'][$perm], $depts[$role]) : $depts[$role]; |
|
368 | 368 |
} |
369 | 369 |
} |
370 | 370 |
|
371 | 371 |