Show social ID to to the workspace owner (#10743)

* Show social ID to to the  workspace owner

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Fix formatting

Signed-off-by: Artem Savchenko <armisav@gmail.com>

---------

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-04-10 12:59:40 +07:00
committed by GitHub
parent 9eb9e9c3b9
commit 8933320710
@@ -17,7 +17,7 @@
import { Icon, Label, tooltip } from '@hcengineering/ui'
import contact, { type SocialIdentity, type SocialIdentityProvider } from '@hcengineering/contact'
import { getClient } from '@hcengineering/presentation'
import { type SocialId } from '@hcengineering/core'
import { AccountRole, getCurrentAccount, type SocialId } from '@hcengineering/core'
import { isSocialIdOwnedByCurrentUser } from '../utils'
export let value: SocialIdentity | SocialId
@@ -35,7 +35,7 @@
$: icon = socialIdProvider?.icon ?? contact.icon.Profile
$: {
isOwner = isSocialIdOwnedByCurrentUser(value)
isOwner = isSocialIdOwnedByCurrentUser(value) || getCurrentAccount().role === AccountRole.Owner
}
</script>