Skip to content

Commit

Permalink
Merge pull request #586 from CBIIT/pbac-show-cli-tool-always
Browse files Browse the repository at this point in the history
fix: CLI Tool should not be bound by `data_submission:create`
  • Loading branch information
Alejandro-Vega authored Jan 8, 2025
2 parents 88c8f56 + 9f7e2bb commit b4fa1ad
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
27 changes: 13 additions & 14 deletions src/components/Header/components/HeaderTabletAndMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,19 @@ const Header = () => {
id: "navbar-dropdown-item-user-profile",
className: "navMobileSubItem",
},
{
name: "Uploader CLI Tool",
onClick: () => setUploaderToolOpen(true),
id: "navbar-dropdown-item-uploader-tool",
className: "navMobileSubItem action",
},
{
name: "API Token",
onClick: () => setOpenAPITokenDialog(true),
id: "navbar-dropdown-item-api-token",
className: "navMobileSubItem action",
permissions: ["data_submission:create"],
},
{
name: "Manage Studies",
link: "/studies",
Expand All @@ -174,20 +187,6 @@ const Header = () => {
className: "navMobileSubItem",
permissions: ["user:manage"],
},
{
name: "Uploader CLI Tool",
onClick: () => setUploaderToolOpen(true),
id: "navbar-dropdown-item-uploader-tool",
className: "navMobileSubItem action",
permissions: ["data_submission:create"],
},
{
name: "API Token",
onClick: () => setOpenAPITokenDialog(true),
id: "navbar-dropdown-item-api-token",
className: "navMobileSubItem action",
permissions: ["data_submission:create"],
},
{
name: "Logout",
link: "/logout",
Expand Down
27 changes: 13 additions & 14 deletions src/components/Header/components/NavbarDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,19 @@ const NavBar = () => {
id: "navbar-dropdown-item-user-profile",
className: "navMobileSubItem",
},
{
name: "Uploader CLI Tool",
onClick: () => setUploaderToolOpen(true),
id: "navbar-dropdown-item-uploader-tool",
className: "navMobileSubItem action",
},
{
name: "API Token",
onClick: () => setOpenAPITokenDialog(true),
id: "navbar-dropdown-item-api-token",
className: "navMobileSubItem action",
permissions: ["data_submission:create"],
},
{
name: "Manage Studies",
link: "/studies",
Expand All @@ -332,20 +345,6 @@ const NavBar = () => {
className: "navMobileSubItem",
permissions: ["user:manage"],
},
{
name: "Uploader CLI Tool",
onClick: () => setUploaderToolOpen(true),
id: "navbar-dropdown-item-uploader-tool",
className: "navMobileSubItem action",
permissions: ["data_submission:create"],
},
{
name: "API Token",
onClick: () => setOpenAPITokenDialog(true),
id: "navbar-dropdown-item-api-token",
className: "navMobileSubItem action",
permissions: ["data_submission:create"],
},
{
name: "Logout",
onClick: () => handleLogout(),
Expand Down

0 comments on commit b4fa1ad

Please sign in to comment.