Fix subpath button (#2977)
Added bucketName to permissions check for subpath
This commit is contained in:
@@ -100,7 +100,7 @@ const BrowserBreadcrumbs = ({
|
|||||||
const splitPaths = paths.split("/").filter((path) => path !== "");
|
const splitPaths = paths.split("/").filter((path) => path !== "");
|
||||||
const lastBreadcrumbsIndex = splitPaths.length - 1;
|
const lastBreadcrumbsIndex = splitPaths.length - 1;
|
||||||
|
|
||||||
const pathToCheckPerms = paths || bucketName;
|
const pathToCheckPerms = bucketName + paths || bucketName;
|
||||||
const sessionGrantWildCards = getSessionGrantsWildCard(
|
const sessionGrantWildCards = getSessionGrantsWildCard(
|
||||||
sessionGrants,
|
sessionGrants,
|
||||||
pathToCheckPerms,
|
pathToCheckPerms,
|
||||||
|
|||||||
Reference in New Issue
Block a user