1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-06 00:03:29 +00:00

reset ownershipOptions on init (#563)

This commit is contained in:
Jake Fink
2021-11-24 09:01:38 -05:00
committed by GitHub
parent e1c6e4973a
commit 340a79bfe6

View File

@@ -154,6 +154,9 @@ export class AddEditComponent implements OnInit {
}
async init() {
if (this.ownershipOptions.length) {
this.ownershipOptions = [];
}
if (await this.policyService.policyAppliesToUser(PolicyType.PersonalOwnership)) {
this.allowPersonal = false;
} else {