Skip to content

Commit

Permalink
Fix subpath button (minio#2977)
Browse files Browse the repository at this point in the history
Added bucketName to permissions check for subpath
  • Loading branch information
jinapurapu authored Aug 2, 2023
1 parent 49f856b commit d116a35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d116a35

Please sign in to comment.