Fix subpath button (#2977)

Added bucketName to permissions check for subpath
This commit is contained in:
jinapurapu
2023-08-02 15:26:39 -07:00
committed by GitHub
parent 49f856bdd5
commit d116a35a6d

View File

@@ -100,7 +100,7 @@ const BrowserBreadcrumbs = ({
const splitPaths = paths.split("/").filter((path) => path !== "");
const lastBreadcrumbsIndex = splitPaths.length - 1;
const pathToCheckPerms = paths || bucketName;
const pathToCheckPerms = bucketName + paths || bucketName;
const sessionGrantWildCards = getSessionGrantsWildCard(
sessionGrants,
pathToCheckPerms,