Skip to content

Commit

Permalink
fix: blocking your own account on mobile view (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
artmakarov authored Oct 31, 2022
1 parent 344fe88 commit ece0fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client-app/pages/company/members.vue
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ function openDeleteDialog(contact: ExtendedContactType): void {
function itemActionsBuilder(item: ExtendedContactType) {
const actions: SlidingActionsItem[] = [];
if (checkPermissions(XApiPermissions.CanEditOrganization)) {
if (checkPermissions(XApiPermissions.CanEditOrganization) && item.id !== user.value.memberId) {
actions.push(
item.status === ContactStatus.Locked
? {
Expand Down

0 comments on commit ece0fbb

Please sign in to comment.