mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Migrate OrganizationService to StateProvider (#7895)
This commit is contained in:
@@ -87,7 +87,7 @@ export class SecretDialogComponent implements OnInit {
|
||||
this.formGroup.get("project").setValue(this.data.projectId);
|
||||
}
|
||||
|
||||
if (this.organizationService.get(this.data.organizationId)?.isAdmin) {
|
||||
if ((await this.organizationService.get(this.data.organizationId))?.isAdmin) {
|
||||
this.formGroup.get("project").removeValidators(Validators.required);
|
||||
this.formGroup.get("project").updateValueAndValidity();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user