Skip to content

Commit da9828f

Browse files
committed
fix user groups list
1 parent bed26c9 commit da9828f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

workers/update-ldap-cache.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@
8888
$REDIS->setCache($gid, "members", (@$pi_group["memberuid"] ?? []));
8989
}
9090
foreach ($user_pi_group_member_of as $uid => $pi_groups) {
91+
$gid = $pi_group["cn"][0];
92+
$members = (@$pi_group["memberuid"] ?? []);
93+
foreach ($members as $uid) {
94+
array_push($user_pi_group_member_of[$uid], $gid);
95+
}
9196
// FIXME should be pi_groups
9297
$REDIS->setCache($uid, "groups", $pi_groups);
9398
}

0 commit comments

Comments
 (0)