mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-13 02:41:11 +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,
|
icon: contact.icon.Person,
|
||||||
label: contact.string.Employee,
|
label: contact.string.Employee,
|
||||||
createLabel: contact.string.CreateEmployee,
|
createLabel: contact.string.CreateEmployee,
|
||||||
createComponent: contact.component.CreateEmployee
|
createComponent: contact.component.CreateEmployee,
|
||||||
|
createComponentAccess: AccountRole.Maintainer
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -200,7 +200,7 @@
|
|||||||
label={setting.string.SelectWorkspace}
|
label={setting.string.SelectWorkspace}
|
||||||
on:click={selectWorkspace}
|
on:click={selectWorkspace}
|
||||||
/>
|
/>
|
||||||
{#if hasAccountRole(account, AccountRole.User)}
|
{#if hasAccountRole(account, AccountRole.Maintainer)}
|
||||||
<NavItem
|
<NavItem
|
||||||
icon={setting.icon.InviteWorkspace}
|
icon={setting.icon.InviteWorkspace}
|
||||||
label={setting.string.InviteWorkspace}
|
label={setting.string.InviteWorkspace}
|
||||||
|
@ -120,7 +120,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
actions.push(...getMenu(items, ['main']))
|
actions.push(...getMenu(items, ['main']))
|
||||||
if (hasAccountRole(account, AccountRole.User)) {
|
if (hasAccountRole(account, AccountRole.Maintainer)) {
|
||||||
actions.push({
|
actions.push({
|
||||||
icon: setting.icon.InviteWorkspace,
|
icon: setting.icon.InviteWorkspace,
|
||||||
label: setting.string.InviteWorkspace,
|
label: setting.string.InviteWorkspace,
|
||||||
|
Loading…
Reference in New Issue
Block a user