diff options
Diffstat (limited to 'client/src/app/+admin/overview/users/user-edit/user-edit.ts')
-rw-r--r-- | client/src/app/+admin/overview/users/user-edit/user-edit.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/+admin/overview/users/user-edit/user-edit.ts b/client/src/app/+admin/overview/users/user-edit/user-edit.ts index 21e9629ab..5428f6ce9 100644 --- a/client/src/app/+admin/overview/users/user-edit/user-edit.ts +++ b/client/src/app/+admin/overview/users/user-edit/user-edit.ts | |||
@@ -62,7 +62,8 @@ export abstract class UserEdit extends FormReactive implements OnInit { | |||
62 | 62 | ||
63 | displayDangerZone () { | 63 | displayDangerZone () { |
64 | if (this.isCreation()) return false | 64 | if (this.isCreation()) return false |
65 | if (this.user?.pluginAuth) return false | 65 | if (!this.user) return false |
66 | if (this.user.pluginAuth) return false | ||
66 | if (this.auth.getUser().id === this.user.id) return false | 67 | if (this.auth.getUser().id === this.user.id) return false |
67 | 68 | ||
68 | return true | 69 | return true |