1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

Add user uses to new permission model (#1228)

This commit is contained in:
Matt Gibson 2021-10-18 13:50:26 -05:00 committed by GitHub
parent f63b395736
commit 3ee61fef96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,13 +80,15 @@ export class UserAddEditComponent implements OnInit {
];
get fallbackToManageAllCollections() {
return this.permissions.createNewCollections == null &&
return this.editMode &&
this.permissions.createNewCollections == null &&
this.permissions.editAnyCollection == null &&
this.permissions.deleteAnyCollection == null;
}
get fallbackToManageAssignedCollections() {
return this.permissions.editAssignedCollections == null &&
return this.editMode &&
this.permissions.editAssignedCollections == null &&
this.permissions.deleteAssignedCollections == null;
}