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[] { permittedAttributes(): Path[] {
const attributes: (keyof Attributes<User>)[] = [ const attributes: (keyof Attributes<User>)[] = ["email", "firstName", "lastName", "displayName"]
"email",
"auth0Subject", if (this.user.isSystemAdmin) {
"firstName", attributes.push("roles")
"lastName", attributes.push("auth0Subject")
"displayName", }
]
return attributes return attributes
} }