fix: minor change

This commit is contained in:
nivedin
2023-12-08 15:26:15 +05:30
committed by Andrew Bastin
parent ebe680c596
commit 16bbfec736

View File

@@ -108,7 +108,7 @@ export function cascadeParentCollectionForHeaderAuth(
if (parentFolderAuth?.authType === "inherit" && isRootCollection) {
auth = {
parentID: parentFolder.id ?? folderPath,
parentID: folderPath,
parentName: parentFolder.name,
inheritedAuth: {
authType: "none",
@@ -119,7 +119,7 @@ export function cascadeParentCollectionForHeaderAuth(
if (parentFolderAuth?.authType !== "inherit") {
auth = {
parentID: parentFolder.id ?? folderPath,
parentID: folderPath,
parentName: parentFolder.name,
inheritedAuth: parentFolderAuth,
}