1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-27 10:23:48 +01:00

[SM-493] Put user toggle behind feature flag (#4716)

This commit is contained in:
Oscar Hinton 2023-02-13 10:09:00 +01:00 committed by GitHub
parent 13746c1840
commit a90b04a5e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ import { Organization } from "@bitwarden/common/models/domain/organization";
import { CollectionView } from "@bitwarden/common/models/view/collection.view";
import { DialogService } from "@bitwarden/components";
import { flagEnabled } from "../../../../../utils/flags";
import {
CollectionAccessSelectionView,
CollectionAdminService,
@ -161,7 +162,7 @@ export class MemberDialogComponent implements OnInit, OnDestroy {
.subscribe(({ organization, collections, userDetails, groups }) => {
this.organization = organization;
this.canUseCustomPermissions = organization.useCustomPermissions;
this.canUseSecretsManager = organization.useSecretsManager;
this.canUseSecretsManager = organization.useSecretsManager && flagEnabled("secretsManager");
this.collectionAccessItems = [].concat(
collections.map((c) => mapCollectionToAccessItemView(c))