mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-11 01:40:32 +00:00
Uberf 9744 restrict invites (#8600)
Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
parent
a11613b40e
commit
0da5766d60
@ -338,7 +338,8 @@ export function createModel (builder: Builder): void {
|
||||
icon: contact.icon.Person,
|
||||
label: contact.string.Employee,
|
||||
createLabel: contact.string.CreateEmployee,
|
||||
createComponent: contact.component.CreateEmployee
|
||||
createComponent: contact.component.CreateEmployee,
|
||||
createComponentAccess: AccountRole.Maintainer
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -200,7 +200,7 @@
|
||||
label={setting.string.SelectWorkspace}
|
||||
on:click={selectWorkspace}
|
||||
/>
|
||||
{#if hasAccountRole(account, AccountRole.User)}
|
||||
{#if hasAccountRole(account, AccountRole.Maintainer)}
|
||||
<NavItem
|
||||
icon={setting.icon.InviteWorkspace}
|
||||
label={setting.string.InviteWorkspace}
|
||||
|
@ -120,7 +120,7 @@
|
||||
}
|
||||
})
|
||||
actions.push(...getMenu(items, ['main']))
|
||||
if (hasAccountRole(account, AccountRole.User)) {
|
||||
if (hasAccountRole(account, AccountRole.Maintainer)) {
|
||||
actions.push({
|
||||
icon: setting.icon.InviteWorkspace,
|
||||
label: setting.string.InviteWorkspace,
|
||||
|
Loading…
Reference in New Issue
Block a user