Policy fix

This commit is contained in:
2026-06-20 00:21:33 -07:00
parent 9b8b41a1fe
commit a57fae636d
+6 -7
View File
@@ -50,13 +50,12 @@ export class UsersPolicy extends PolicyFactory(User) {
}
permittedAttributes(): Path[] {
const attributes: (keyof Attributes<User>)[] = [
"email",
"auth0Subject",
"firstName",
"lastName",
"displayName",
]
const attributes: (keyof Attributes<User>)[] = ["email", "firstName", "lastName", "displayName"]
if (this.user.isSystemAdmin) {
attributes.push("roles")
attributes.push("auth0Subject")
}
return attributes
}