1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

[AC-1139] Changed canAccessVaultTab function to receive configService

This commit is contained in:
Rui Tome
2023-11-22 16:52:43 +00:00
parent 572e6e7ee2
commit 9cac254a18
11 changed files with 64 additions and 63 deletions

View File

@@ -319,7 +319,7 @@ export class CollectionDialogComponent implements OnInit, OnDestroy {
protected canDelete$ = this.flexibleCollectionsEnabled$.pipe(
switchMap(async (flexibleCollectionsEnabled) => {
return (
this.editMode && this.collection?.canDelete(this.organization!, flexibleCollectionsEnabled)
this.editMode && this.collection.canDelete(this.organization, flexibleCollectionsEnabled)
);
})
);