From e2d5a27dac6ed14635c2a60efa8238b5c14a1b0c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 2 Aug 2022 14:37:18 +0100 Subject: [PATCH] Prevent deleting yourself or resetting your own password from user details page --- .../portal/manage/users/[userId].svelte | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte index 3e7c64dbec..0f697a5007 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte @@ -237,18 +237,21 @@ -
- - - - - Force Password Reset - Delete - -
+ {#if userId !== $auth.user._id} +
+ + + + + + Force password reset + + + Delete + + +
+ {/if}