fix: Jwt context.features to work without context.user. Fixes #12005
This commit is contained in:
parent
61df6f6794
commit
41a6cbd3fc
|
@ -150,8 +150,10 @@ function _setJWT(store, next, action) {
|
||||||
action.tenant = context.tenant || sub || undefined;
|
action.tenant = context.tenant || sub || undefined;
|
||||||
action.user = user;
|
action.user = user;
|
||||||
|
|
||||||
user && _overwriteLocalParticipant(
|
const newUser = user ? { ...user } : {};
|
||||||
store, { ...user,
|
|
||||||
|
_overwriteLocalParticipant(
|
||||||
|
store, { ...newUser,
|
||||||
features: context.features });
|
features: context.features });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue