@xuda.io/drive_module 1.1.818 → 1.1.820
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/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2665,6 +2665,7 @@ const get_drive_doc = async function (
|
|
|
2665
2665
|
|
|
2666
2666
|
case "workspace": {
|
|
2667
2667
|
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
2668
|
+
const app_id_master = await _common.get_project_app_id(app_id, true);
|
|
2668
2669
|
|
|
2669
2670
|
doc_ret = await db_module.get_app_couch_doc(
|
|
2670
2671
|
app_id_reference,
|
|
@@ -2673,8 +2674,8 @@ const get_drive_doc = async function (
|
|
|
2673
2674
|
|
|
2674
2675
|
if (
|
|
2675
2676
|
doc_ret?.data?.type === "file" &&
|
|
2676
|
-
!
|
|
2677
|
-
!
|
|
2677
|
+
!oc_ret?.data?._id.includes(app_id) &&
|
|
2678
|
+
!oc_ret?.data?._id.includes(app_id_master)
|
|
2678
2679
|
) {
|
|
2679
2680
|
throw new Error("file_path unauthorized");
|
|
2680
2681
|
}
|