Skip to content

Commit d116a35

Browse files
authored
Fix subpath button (#2977)
Added bucketName to permissions check for subpath
1 parent 49f856b commit d116a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

portal-ui/src/screens/Console/ObjectBrowser/BrowserBreadcrumbs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const BrowserBreadcrumbs = ({
100100
const splitPaths = paths.split("/").filter((path) => path !== "");
101101
const lastBreadcrumbsIndex = splitPaths.length - 1;
102102

103-
const pathToCheckPerms = paths || bucketName;
103+
const pathToCheckPerms = bucketName + paths || bucketName;
104104
const sessionGrantWildCards = getSessionGrantsWildCard(
105105
sessionGrants,
106106
pathToCheckPerms,

0 commit comments

Comments
 (0)