|
|
|
|
@ -361,7 +361,7 @@ export class ImportComponent implements OnInit, OnDestroy {
@@ -361,7 +361,7 @@ export class ImportComponent implements OnInit, OnDestroy {
|
|
|
|
|
fileContents, |
|
|
|
|
this.organizationId, |
|
|
|
|
this.formGroup.controls.targetSelector.value, |
|
|
|
|
this.isUserAdmin(this.organizationId) |
|
|
|
|
this.canAccessImportExport(this.organizationId) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
//No errors, display success message
|
|
|
|
|
@ -386,6 +386,13 @@ export class ImportComponent implements OnInit, OnDestroy {
@@ -386,6 +386,13 @@ export class ImportComponent implements OnInit, OnDestroy {
|
|
|
|
|
return this.organizationService.get(this.organizationId)?.isAdmin; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private canAccessImportExport(organizationId?: string): boolean { |
|
|
|
|
if (!organizationId) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
return this.organizationService.get(this.organizationId)?.canAccessImportExport; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getFormatInstructionTitle() { |
|
|
|
|
if (this.format == null) { |
|
|
|
|
return null; |
|
|
|
|
|