Policy fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user