[frontend] fix security menu redirections(#14736)#14759
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14759 +/- ##
==========================================
- Coverage 32.37% 32.36% -0.01%
==========================================
Files 3098 3098
Lines 211033 211049 +16
Branches 38245 38250 +5
==========================================
+ Hits 68312 68315 +3
- Misses 142721 142734 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Fixes the Settings → Security menu redirection so users with any security-related capability (markings, dissemination lists, authentications, org admin, etc.) land on an appropriate Security subpage instead of being bounced back to Parameters.
Changes:
- Update the
/dashboard/settings/accessesroute guard to allow additional security-related capabilities (markings, dissemination, auth). - Add a capability-aware redirect component to send users to the first Security subpage they can access.
- Update the left navigation permission checks so the “Security” entry is shown for the same broader set of capabilities.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| opencti-platform/opencti-front/src/private/components/settings/Root.tsx | Broadens access to the Settings “Security” root route and adds a redirect to the correct Security subpage based on granted capabilities. |
| opencti-platform/opencti-front/src/private/components/nav/LeftBar.jsx | Aligns the left navigation “Security” visibility and Settings section gating with the expanded security-related capabilities. |
Proposed changes
*Expands access to the ‘Security’ root of the settings and adds a redirect to the appropriate Security subpage based on the permissions granted
Related issues
Checklist
Further comments