@@ -40,6 +40,13 @@ jobs:
|
|||||||
run: go test ./...
|
run: go test ./...
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Install & run gosec
|
||||||
|
working-directory: backend/gestion
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||||
|
gosec ./...
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export function BackofficeLayout() {
|
|||||||
<HStack spacing={1} display={{ base: 'none', md: 'flex' }}>
|
<HStack spacing={1} display={{ base: 'none', md: 'flex' }}>
|
||||||
{(isAdmin || (isClient && !isPremium)) && <NavItem to="/app/leads">Leads</NavItem>}
|
{(isAdmin || (isClient && !isPremium)) && <NavItem to="/app/leads">Leads</NavItem>}
|
||||||
{isClient && <NavItem to="/app/subscription">Abonnement</NavItem>}
|
{isClient && <NavItem to="/app/subscription">Abonnement</NavItem>}
|
||||||
|
{isAdmin || isClient && <NavItem to="/app/profile">Profile</NavItem>}
|
||||||
{isAdmin && <NavItem to="/app/messages">Messages</NavItem>}
|
{isAdmin && <NavItem to="/app/messages">Messages</NavItem>}
|
||||||
{isAdmin && <NavItem to="/app/demos">Démos</NavItem>}
|
{isAdmin && <NavItem to="/app/demos">Démos</NavItem>}
|
||||||
{isAdmin && <NavItem to="/app/codes">Codes</NavItem>}
|
{isAdmin && <NavItem to="/app/codes">Codes</NavItem>}
|
||||||
@@ -110,6 +111,11 @@ export function BackofficeLayout() {
|
|||||||
Codes
|
Codes
|
||||||
</NavItem>
|
</NavItem>
|
||||||
)}
|
)}
|
||||||
|
{isAdmin || isClient && (
|
||||||
|
<NavItem to="/app/profile" onClick={onClose} mobile>
|
||||||
|
Profile
|
||||||
|
</NavItem>
|
||||||
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Divider my={6} />
|
<Divider my={6} />
|
||||||
|
|||||||
Reference in New Issue
Block a user