Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion openbas-front/src/admin/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,15 @@ const Index = () => {
{GettingStartedRoutes}
<Route
path="settings/*"
element={errorWrapper(IndexSettings)()}
element={(
<ProtectedRoute
checks={[{
action: ACTIONS.ACCESS,
subject: SUBJECTS.PLATFORM_SETTINGS,
}]}
Component={errorWrapper(IndexSettings)()}
/>
)}
/>
{/* Not found */}
<Route path="*" element={<NotFound />} />
Expand Down