Prevent deleting yourself or resetting your own password from user details page
This commit is contained in:
parent
16cb6d556f
commit
e2d5a27dac
|
@ -237,18 +237,21 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
{#if userId !== $auth.user._id}
|
||||||
<ActionMenu align="right">
|
<div>
|
||||||
<span slot="control">
|
<ActionMenu align="right">
|
||||||
<Icon hoverable name="More" />
|
<span slot="control">
|
||||||
</span>
|
<Icon hoverable name="More" />
|
||||||
<MenuItem on:click={resetPasswordModal.show} icon="Refresh"
|
</span>
|
||||||
>Force Password Reset</MenuItem
|
<MenuItem on:click={resetPasswordModal.show} icon="Refresh">
|
||||||
>
|
Force password reset
|
||||||
<MenuItem on:click={deleteModal.show} icon="Delete">Delete</MenuItem
|
</MenuItem>
|
||||||
>
|
<MenuItem on:click={deleteModal.show} icon="Delete">
|
||||||
</ActionMenu>
|
Delete
|
||||||
</div>
|
</MenuItem>
|
||||||
|
</ActionMenu>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
<Layout gap="S" noPadding>
|
<Layout gap="S" noPadding>
|
||||||
|
|
Loading…
Reference in New Issue