-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Logs UI] Check for privileges with user management links #91134
[Logs UI] Check for privileges with user management links #91134
Conversation
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work as intended 👍
x-pack/plugins/infra/public/components/logging/log_analysis_setup/user_management_link.tsx
Outdated
Show resolved
Hide resolved
…tup/user_management_link.tsx Co-authored-by: Felix Stürmer <[email protected]>
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…91490) * Wrap users management link with privileges check Co-authored-by: Kibana Machine <[email protected]>
Summary
This PR fixes #79264.
I'd considered hoisting these checks one level higher to the prompts (setup and results) and only conditionally providing the
actions
to the EUI prompt, or even wrapping the results / setup privileges prompts with a new component that could pass acanAccessUserManagement
prop, but honestly both just seemed needlessly complex.Testing
Across both the categories and anomalies pages, and also across both the setup scenario and the viewing results scenario, if the user is lacking in ML privileges the Manage Users button should only appear if the user has the sufficient management privileges (
management > security > users
).