Skip to content

Commit

Permalink
StructuredClone to prevent cache group issues with adminpage
Browse files Browse the repository at this point in the history
rorylshanks committed Jun 12, 2024
1 parent 3f87a82 commit bfb7c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adminpage.js
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ async function renderUserDetailsPage(req, res) {
res.redirect(redirectBasePath + "/asmin/users")
return
}
var user = await idp.getUserById(userId)
var user = structuredClone(await idp.getUserById(userId))
var userGroups = user.groups
user.groups = null
var config = getConfig()

0 comments on commit bfb7c6b

Please sign in to comment.