[AC-1552] Fixed issue where Organization members with "Manage groups" permissions can view the Vault tab (#6047)
This commit is contained in:
parent
35cc0da3cc
commit
2d768dd473
|
@ -6,7 +6,7 @@ import { OrganizationData } from "../../models/data/organization.data";
|
||||||
import { Organization } from "../../models/domain/organization";
|
import { Organization } from "../../models/domain/organization";
|
||||||
|
|
||||||
export function canAccessVaultTab(org: Organization): boolean {
|
export function canAccessVaultTab(org: Organization): boolean {
|
||||||
return org.canViewAssignedCollections || org.canViewAllCollections || org.canManageGroups;
|
return org.canViewAssignedCollections || org.canViewAllCollections;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function canAccessSettingsTab(org: Organization): boolean {
|
export function canAccessSettingsTab(org: Organization): boolean {
|
||||||
|
|
Loading…
Reference in New Issue