fix: unauthorized error in organization (#11039)
* fix: unauthorized error in organization Signed-off-by: Udit Takkar <[email protected]> * chore Signed-off-by: Udit Takkar <[email protected]> * fix: allow instance admin to update Signed-off-by: Udit Takkar <[email protected]> --------- Signed-off-by: Udit Takkar <[email protected]>
This commit is contained in:
1 parent
38d9b93dee
commit
4ac6225a35
2 files changed
+6
-5
No files matched your search
@@ -387,7 +387,7 @@ export const AUTH_OPTIONS: AuthOptions = {
|
||||
if (trigger === "update") {
|
||||
return {
|
||||
...token,
|
||||
locale: session?.locale ?? token.locale,
|
||||
locale: session?.locale ?? token.locale ?? "en",
|
||||
name: session?.name ?? token.name,
|
||||
username: session?.username ?? token.username,
|
||||
email: session?.email ?? token.email,
|
||||
|
||||
Reference in new issue
Block a user