@stoker-platform/web-app 0.3.3 → 0.3.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.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/Files.tsx +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/Files.tsx
CHANGED
|
@@ -561,7 +561,7 @@ export const RecordFiles = ({ collection, record }: FilesProps) => {
|
|
|
561
561
|
let timeoutId: NodeJS.Timeout | null = null
|
|
562
562
|
|
|
563
563
|
try {
|
|
564
|
-
const expectedPath = `${labels.collection}/${record?.id}`
|
|
564
|
+
const expectedPath = `${tenantId}/${labels.collection}/${record?.id}`
|
|
565
565
|
if (!item.fullPath.startsWith(expectedPath)) {
|
|
566
566
|
throw new Error("Access denied: Invalid file path")
|
|
567
567
|
}
|