mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-15 20:11:30 +01:00
Remove unnecessary fallbacks (#1245)
Web is in lock-step to server version. We do not need fallbacks since we're sure the server version will support collection permissions split.
This commit is contained in:
parent
3ee61fef96
commit
1de569e64d
@ -80,20 +80,7 @@
|
||||
<div class="mb-3">
|
||||
<label class="font-weight-bold mb-0">Manager Permissions</label>
|
||||
<hr class="my-0 mr-2" />
|
||||
<!-- Deprecated Sep 29 2021 -->
|
||||
<div class="form-group mb-0" *ngIf="fallbackToManageAssignedCollections">
|
||||
<div class="form-check mt-1 form-check-block">
|
||||
<input class="form-check-input" type="checkbox" name="manageAssignedCollections"
|
||||
id="manageAssignedCollections"
|
||||
[(ngModel)]="permissions.manageAssignedCollections">
|
||||
<label class="form-check-label font-weight-normal"
|
||||
for="manageAssignedCollections">
|
||||
{{'manageAssignedCollections' | i18n}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
<app-nested-checkbox *ngIf="!fallbackToManageAssignedCollections" parentId="manageAssignedCollections"
|
||||
<app-nested-checkbox parentId="manageAssignedCollections"
|
||||
[checkboxes]="manageAssignedCollectionsCheckboxes">
|
||||
</app-nested-checkbox>
|
||||
</div>
|
||||
@ -129,18 +116,7 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Deprecated 29 Sep 2021 -->
|
||||
<div class="form-group mb-0" *ngIf="fallbackToManageAllCollections">
|
||||
<div class="form-check mt-1 form-check-block">
|
||||
<input class="form-check-input" type="checkbox" name="manageAllCollections"
|
||||
id="manageAllCollections" [(ngModel)]="permissions.manageAllCollections">
|
||||
<label class="form-check-label font-weight-normal" for="manageAllCollections">
|
||||
{{'manageAllCollections' | i18n}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
<app-nested-checkbox *ngIf="!fallbackToManageAllCollections" parentId="manageAllCollections"
|
||||
<app-nested-checkbox parentId="manageAllCollections"
|
||||
[checkboxes]="manageAllCollectionsCheckboxes">
|
||||
</app-nested-checkbox>
|
||||
<div class="form-group mb-0">
|
||||
|
@ -79,19 +79,6 @@ export class UserAddEditComponent implements OnInit {
|
||||
},
|
||||
];
|
||||
|
||||
get fallbackToManageAllCollections() {
|
||||
return this.editMode &&
|
||||
this.permissions.createNewCollections == null &&
|
||||
this.permissions.editAnyCollection == null &&
|
||||
this.permissions.deleteAnyCollection == null;
|
||||
}
|
||||
|
||||
get fallbackToManageAssignedCollections() {
|
||||
return this.editMode &&
|
||||
this.permissions.editAssignedCollections == null &&
|
||||
this.permissions.deleteAssignedCollections == null;
|
||||
}
|
||||
|
||||
get customUserTypeSelected(): boolean {
|
||||
return this.type === OrganizationUserType.Custom;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user