SED-4536 granular-access-control-for-resource-types#122
SED-4536 granular-access-control-for-resource-types#122david-stephan wants to merge 2 commits intomasterfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new method for authorization checks, Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new method checkRightInContextIfDefined to the AuthorizationManager interface and provides a default implementation in NoAuthorizationManager. The goal is to allow for more granular access control where rights can be checked only if they are defined in the system. The changes are straightforward. I've made a couple of suggestions to improve the Javadoc for clarity and correctness.
| void setRoleResolver(RoleResolver roleResolver); | ||
|
|
||
| /** | ||
| * Check if the give right is granted for the provided context (Session) |
| boolean checkRightInContext(S session, String right); | ||
|
|
||
| /** | ||
| * Check if the right is defined in the system. If it isn't the right is automatically granted, otherwise it falls back to the checkRightInContext |
There was a problem hiding this comment.
The Javadoc could be more precise and use a {@link} reference for better navigation and clarity. This also makes it clearer which method is being delegated to.
| * Check if the right is defined in the system. If it isn't the right is automatically granted, otherwise it falls back to the checkRightInContext | |
| * Checks if the right is defined in the system. If not, the right is automatically granted. Otherwise, it delegates to {@link #checkRightInContext(S, String)}. |
No description provided.