mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
[DURACOM-312] set the newly created impersonatingID filed in UploaderOptions.
(cherry picked from commit c70fe184208805be8657d4373f50f193e2c6e85f)
This commit is contained in:
@@ -209,6 +209,7 @@ export class SubmissionFormComponent implements OnChanges, OnDestroy {
|
|||||||
distinctUntilChanged())
|
distinctUntilChanged())
|
||||||
.subscribe((endpointURL) => {
|
.subscribe((endpointURL) => {
|
||||||
this.uploadFilesOptions.authToken = this.authService.buildAuthHeader();
|
this.uploadFilesOptions.authToken = this.authService.buildAuthHeader();
|
||||||
|
this.uploadFilesOptions.impersonatingID = this.authService.getImpersonateID();
|
||||||
this.uploadFilesOptions.url = endpointURL.concat(`/${this.submissionId}`);
|
this.uploadFilesOptions.url = endpointURL.concat(`/${this.submissionId}`);
|
||||||
this.definitionId = this.submissionDefinition.name;
|
this.definitionId = this.submissionDefinition.name;
|
||||||
this.submissionService.dispatchInit(
|
this.submissionService.dispatchInit(
|
||||||
|
Reference in New Issue
Block a user