mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat(ui): added back layout change made for integrations page
This commit is contained in:
@@ -115,13 +115,13 @@ export const AppLayout = ({ children }: LayoutProps) => {
|
|||||||
.split('/')
|
.split('/')
|
||||||
[router.asPath.split('/').length - 1].split('?')[0];
|
[router.asPath.split('/').length - 1].split('?')[0];
|
||||||
|
|
||||||
if (!['heroku', 'vercel', 'github', 'netlify'].includes(intendedWorkspaceId)) {
|
if (!['callback', 'create', 'authorize'].includes(intendedWorkspaceId)) {
|
||||||
localStorage.setItem('projectData.id', intendedWorkspaceId);
|
localStorage.setItem('projectData.id', intendedWorkspaceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a user is not a member of a workspace they are trying to access, just push them to one of theirs
|
// If a user is not a member of a workspace they are trying to access, just push them to one of theirs
|
||||||
if (
|
if (
|
||||||
!['heroku', 'vercel', 'github', 'netlify'].includes(intendedWorkspaceId) &&
|
!['callback', 'create', 'authorize'].includes(intendedWorkspaceId) &&
|
||||||
!userWorkspaces
|
!userWorkspaces
|
||||||
.map((workspace: { _id: string }) => workspace._id)
|
.map((workspace: { _id: string }) => workspace._id)
|
||||||
.includes(intendedWorkspaceId)
|
.includes(intendedWorkspaceId)
|
||||||
|
|||||||
Reference in New Issue
Block a user