chore: enable vaults on free internal team user accounts (#2617)

This commit is contained in:
Karol Sójko
2023-11-03 11:23:42 +01:00
committed by GitHub
parent 202a132482
commit 0902580b79
4 changed files with 12 additions and 3 deletions

View File

@@ -412,6 +412,10 @@ export class FeaturesService
return Object.values(RoleName.NAMES).filter((role) => roles.includes(role))
}
hasRole(roleName: RoleName): boolean {
return this.onlineRoles.includes(roleName.value) || this.offlineRoles.includes(roleName.value)
}
public hasMinimumRole(role: string): boolean {
const sortedAllRoles = Object.values(RoleName.NAMES)