Uberf 9744 restrict invites (#8600)

Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
utkaka 2025-04-17 15:42:28 +07:00 committed by GitHub
parent a11613b40e
commit 0da5766d60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -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
} }
}, },
{ {

View File

@ -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}

View File

@ -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,