Skip to content

Commit

Permalink
Hide user dropdown for current user (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspergrom authored Oct 10, 2023
1 parent ed8df72 commit db0d9f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
<template #default="scope">
<div class="table-actions">
<app-user-dropdown
v-if="scope.row.id !== currentUser.id"
:user="scope.row"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Export to CSV
</el-dropdown-item>
<el-dropdown-item
v-if="hasPermissionToDestroy"
v-if="hasPermissionToDestroy && !(selectedRows.length === 1 && selectedRows[0].id === currentUser.id)"
command="destroyAll"
:disabled="destroyButtonDisabled"
>
Expand Down

0 comments on commit db0d9f5

Please sign in to comment.