mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user