@humandialog/forms.svelte 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -360,6 +360,23 @@ function prepareFullImagePath(url) {
|
|
|
360
360
|
fullPath += "=" + param.value;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
+
} else {
|
|
364
|
+
const user = $session.localDevCurrentUser;
|
|
365
|
+
if (user) {
|
|
366
|
+
if (fullPath.includes("?")) {
|
|
367
|
+
fullPath += "&";
|
|
368
|
+
} else {
|
|
369
|
+
fullPath += "?";
|
|
370
|
+
}
|
|
371
|
+
if (user.uid > 0)
|
|
372
|
+
fullPath += "x-reef-user-id=" + user.uid;
|
|
373
|
+
else
|
|
374
|
+
fullPath += "x-reef-as-user=" + user.username;
|
|
375
|
+
if (user.role)
|
|
376
|
+
fullPath += "&x-reef-access-role=" + user.role;
|
|
377
|
+
if (user.groupId)
|
|
378
|
+
fullPath += "&x-reef-group-id=" + user.groupId;
|
|
379
|
+
}
|
|
363
380
|
}
|
|
364
381
|
return fullPath;
|
|
365
382
|
}
|