stanig2106 573e4a0cb4 [Workavia] Drop double-save in remote.ts that wiped user.cache.companies
Upstream OIDC remote.updateUser does:
1. users.save(user) — basic fields, cache.companies unset
2. companies.setUserRole(company, user) — fetches fresh user, pushes
   company id into cache.companies, users.save() that fresh user
3. users.save(user) — saves the LOCAL stale user, overwriting (2)

Step 3 is what breaks: cache.companies ends up empty in DB, the user
search index loses the companies field, and the share-picker can't
find users from the same Company.

Removing step 3 fixes it: setUserRole's save is the authoritative one.
2026-05-02 22:06:53 +02:00
2023-04-11 10:04:29 +01:00
2023-03-23 11:03:16 +01:00
2025-01-31 23:29:51 +01:00
2023-03-23 11:03:16 +01:00
2023-12-11 16:08:12 +01:00
2024-07-26 10:28:26 +02:00
2023-03-23 11:03:16 +01:00
2023-03-23 11:03:16 +01:00
2025-11-22 09:06:34 +01:00

Twake Drive Legacy

Go check the new Twake Drive: https://github.com/linagora/twake-drive

License

Twake Drive is licensed under Affero GPL v3

S
Description
Workavia fork of linagora/tdrive — branding + multi-tenant Company per email domain
Readme AGPL-3.0 175 MiB
Languages
TypeScript 59.1%
JavaScript 32.5%
SCSS 3.7%
CSS 2.2%
HTML 1.3%
Other 1.1%