1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {