parent
fc641c9b96
commit
5ffa106cc1
|
@ -496,10 +496,10 @@ export class UserEntityService implements OnModuleInit {
|
||||||
showTimelineReplies: user.showTimelineReplies ?? falsy,
|
showTimelineReplies: user.showTimelineReplies ?? falsy,
|
||||||
achievements: profile!.achievements,
|
achievements: profile!.achievements,
|
||||||
loggedInDays: profile!.loggedInDates.length,
|
loggedInDays: profile!.loggedInDates.length,
|
||||||
|
policies: this.roleService.getUserPolicies(user.id),
|
||||||
} : {}),
|
} : {}),
|
||||||
|
|
||||||
...(opts.includeSecrets ? {
|
...(opts.includeSecrets ? {
|
||||||
policies: this.roleService.getUserPolicies(user.id),
|
|
||||||
email: profile!.email,
|
email: profile!.email,
|
||||||
emailVerified: profile!.emailVerified,
|
emailVerified: profile!.emailVerified,
|
||||||
securityKeysList: profile!.twoFactorEnabled
|
securityKeysList: profile!.twoFactorEnabled
|
||||||
|
|
Loading…
Reference in a new issue