fix: minor change
This commit is contained in:
@@ -108,7 +108,7 @@ export function cascadeParentCollectionForHeaderAuth(
|
|||||||
|
|
||||||
if (parentFolderAuth?.authType === "inherit" && isRootCollection) {
|
if (parentFolderAuth?.authType === "inherit" && isRootCollection) {
|
||||||
auth = {
|
auth = {
|
||||||
parentID: parentFolder.id ?? folderPath,
|
parentID: folderPath,
|
||||||
parentName: parentFolder.name,
|
parentName: parentFolder.name,
|
||||||
inheritedAuth: {
|
inheritedAuth: {
|
||||||
authType: "none",
|
authType: "none",
|
||||||
@@ -119,7 +119,7 @@ export function cascadeParentCollectionForHeaderAuth(
|
|||||||
|
|
||||||
if (parentFolderAuth?.authType !== "inherit") {
|
if (parentFolderAuth?.authType !== "inherit") {
|
||||||
auth = {
|
auth = {
|
||||||
parentID: parentFolder.id ?? folderPath,
|
parentID: folderPath,
|
||||||
parentName: parentFolder.name,
|
parentName: parentFolder.name,
|
||||||
inheritedAuth: parentFolderAuth,
|
inheritedAuth: parentFolderAuth,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user