Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Improve style
x032205902a0b0c5634
diff --git a/frontend/src/pages/organization/ProjectsPage/components/AllProjectView.tsx b/frontend/src/pages/organization/ProjectsPage/components/AllProjectView.tsxindex a5e3533c0a..d4b44902f1 100644--- a/frontend/src/pages/organization/ProjectsPage/components/AllProjectView.tsx+++ b/frontend/src/pages/organization/ProjectsPage/components/AllProjectView.tsx@@ -351,25 +351,16 @@ export const AllProjectView = ({<span>Joined</span></Badge>) : (- <div className="flex gap-2 opacity-0 transition-all group-hover:opacity-100">- <Button- size="xs"- variant="outline_bg"- onClick={() => handlePopUpOpen("requestAccessConfirmation", workspace)}- >- Request Access- </Button>-+ <div className="opacity-0 transition-all group-hover:opacity-100"><OrgPermissionCanI={OrgPermissionAdminConsoleAction.AccessAllProjects}an={OrgPermissionSubjects.AdminConsole}>{(isAllowed) =>- isAllowed && (+ isAllowed ? (<Buttonsize="xs"- variant="star"- colorSchema="primary"+ variant="outline_bg"onClick={(e) => {e.stopPropagation();e.preventDefault();@@ -382,6 +373,14 @@ export const AllProjectView = ({>Admin Access</Button>+ ) : (+ <Button+ size="xs"+ variant="outline_bg"+ onClick={() => handlePopUpOpen("requestAccessConfirmation", workspace)}+ >+ Request Access+ </Button>)}</OrgPermissionCan>