mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fallback for legacy user
This commit is contained in:
parent
d052a3e701
commit
eaac049122
@ -49,7 +49,11 @@ export async function syncUser(
|
||||
if (!isValid(postUser, user.id)) {
|
||||
return ExecutedHumhubAction.VALIDATION_ERROR
|
||||
}
|
||||
const humhubUser = humhubUsers.get(postUser.account.username)
|
||||
let humhubUser = humhubUsers.get(postUser.account.username)
|
||||
if (!humhubUser) {
|
||||
// fallback for legacy users
|
||||
humhubUser = humhubUsers.get(user.gradidoID)
|
||||
}
|
||||
const humHubClient = HumHubClient.getInstance()
|
||||
if (!humHubClient) {
|
||||
throw new LogError('Error creating humhub client')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user