From 780f48d04ad5ac5594bb14472bf0da1eea9b944b Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Wed, 18 Oct 2023 18:29:10 +0700 Subject: [PATCH] UBERF-31: Fix comment edit (#3853) Signed-off-by: Andrey Sobolev --- plugins/activity-resources/src/components/TxView.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/activity-resources/src/components/TxView.svelte b/plugins/activity-resources/src/components/TxView.svelte index 8a85f397c7..d221c62ed9 100644 --- a/plugins/activity-resources/src/components/TxView.svelte +++ b/plugins/activity-resources/src/components/TxView.svelte @@ -65,6 +65,8 @@ let edit: boolean = false let showDiff: boolean = false + const currentAccount = getCurrentAccount() as PersonAccount + $: if (tx.tx._id !== ptx?.tx._id) { if (tx.tx.modifiedBy !== account?._id) { account = undefined @@ -326,7 +328,7 @@ {#if isComment}
- {#if tx.tx.modifiedBy === getCurrentAccount()._id} + {#if account?.person === currentAccount?.person} {/if}