mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
A user added to a team becomes a normal member of the boards that team is assigned to (#4593, addUserToTeamBoards). The Admin Panel paths did that, but the login providers' group syncs - LDAP_SYNC_TEAMS and OIDC groups with PROPAGATE_OIDC_DATA - pushed the team onto the user with a plain $push. Such users could see the team's boards but not work on them. Both now run the same board sync after adding a team: LDAP imports it, and the wekan-oidc package, which cannot import app code, reaches it through a global as it already reaches authEnv. tests/teamBoardsFromLoginSync.test.cjs pins both paths and fails if any code pushes a team onto a user without the board sync; the OIDC concurrency test now checks each concurrent login syncs only its own team's boards. Thanks to xet7 !