Fix build error (#9150)

This commit is contained in:
Thomas Rittson 2024-05-14 00:22:01 +10:00 committed by GitHub
parent 9c839a62d7
commit a852493211
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 1 deletions

View File

@ -35,6 +35,7 @@ export class VaultCollectionRowComponent {
@Input() groups: GroupView[];
@Input() showPermissionsColumn: boolean;
@Input() flexibleCollectionsV1Enabled: boolean;
@Input() restrictProviderAccess: boolean;
@Output() onEvent = new EventEmitter<VaultItemEvent>();
@ -56,7 +57,10 @@ export class VaultCollectionRowComponent {
}
get permissionText() {
if (this.collection.id == Unassigned && this.organization?.canEditUnassignedCiphers()) {
if (
this.collection.id == Unassigned &&
this.organization?.canEditUnassignedCiphers(this.restrictProviderAccess)
) {
return this.i18nService.t("canEdit");
}
if ((this.collection as CollectionAdminView).assigned) {

View File

@ -97,6 +97,7 @@
[canEditCollection]="canEditCollection(item.collection)"
[canViewCollectionInfo]="canViewCollectionInfo(item.collection)"
[flexibleCollectionsV1Enabled]="flexibleCollectionsV1Enabled"
[restrictProviderAccess]="restrictProviderAccess"
[checked]="selection.isSelected(item)"
(checkedToggled)="selection.toggle(item)"
(onEvent)="event($event)"

View File

@ -48,6 +48,7 @@ export class VaultItemsComponent {
@Input({ required: true }) flexibleCollectionsV1Enabled = false;
@Input() addAccessStatus: number;
@Input() addAccessToggle: boolean;
@Input() restrictProviderAccess: boolean;
private _ciphers?: CipherView[] = [];
@Input() get ciphers(): CipherView[] {

View File

@ -71,6 +71,7 @@
[flexibleCollectionsV1Enabled]="flexibleCollectionsV1Enabled"
[addAccessStatus]="addAccessStatus$ | async"
[addAccessToggle]="showAddAccessToggle"
[restrictProviderAccess]="restrictProviderAccessEnabled"
>
</app-vault-items>
<ng-container *ngIf="!flexibleCollectionsV1Enabled">