[AC-1552] Fixed issue where Organization members with "Manage groups" permissions can view the Vault tab (#6047)

This commit is contained in:
Rui Tomé 2023-08-24 12:35:11 +01:00 committed by GitHub
parent 35cc0da3cc
commit 2d768dd473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import { OrganizationData } from "../../models/data/organization.data";
import { Organization } from "../../models/domain/organization";
export function canAccessVaultTab(org: Organization): boolean {
return org.canViewAssignedCollections || org.canViewAllCollections || org.canManageGroups;
return org.canViewAssignedCollections || org.canViewAllCollections;
}
export function canAccessSettingsTab(org: Organization): boolean {