mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
add Field role
This commit is contained in:
parent
d4bfaaa52c
commit
329d8b5507
@ -6,6 +6,7 @@ export class AdminUser {
|
||||
constructor(user: User) {
|
||||
this.firstName = user.firstName
|
||||
this.lastName = user.lastName
|
||||
this.role = user.userRoles ? user.userRoles[0].role : ''
|
||||
}
|
||||
|
||||
@Field(() => String)
|
||||
@ -13,6 +14,9 @@ export class AdminUser {
|
||||
|
||||
@Field(() => String)
|
||||
lastName: string
|
||||
|
||||
@Field(() => String)
|
||||
role: string
|
||||
}
|
||||
|
||||
@ObjectType()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user