Fix role creation failure for restapi:admin/* permissions - #6226
Fix role creation failure for restapi:admin/* permissions#6226itsmevichu wants to merge 7 commits into
restapi:admin/* permissions#6226Conversation
Signed-off-by: Vishnutheep B <vishnutheep@gmail.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit b85cfd9.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍(Review updated until commit 45bb65f)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 45bb65f Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 45bb65f
Suggestions up to commit 39e7667
Suggestions up to commit f719d6e
Suggestions up to commit d4caeab
Suggestions up to commit b85cfd9
|
Signed-off-by: Vishnutheep B <vishnutheep@gmail.com>
|
Persistent review updated to latest commit d4caeab |
DarshitChanpura
left a comment
There was a problem hiding this comment.
Changes LGTM. Will approve once CI is green
|
Persistent review updated to latest commit f719d6e |
|
Persistent review updated to latest commit 39e7667 |
Signed-off-by: Vishnutheep B <vishnutheep@gmail.com>
|
Persistent review updated to latest commit 45bb65f |
1 similar comment
|
Persistent review updated to latest commit 45bb65f |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6226 +/- ##
==========================================
- Coverage 75.39% 75.37% -0.02%
==========================================
Files 456 456
Lines 29924 29929 +5
Branches 4530 4531 +1
==========================================
Hits 22560 22560
- Misses 5265 5273 +8
+ Partials 2099 2096 -3
🚀 New features to boost your workflow:
|

Description
This PR allows superadmin user to create roles with
restapi:admin/*permissions.Creating a role with
restapi:admin/*permissions was failing with an `Access denied error, even when the request was made by a superadmin user;restapi:admin/*permissions would fail withAccess denied, even when the request was made by a superadmin user.restapi:admin/*permissions.Issues Resolved
#6178
Testing
Unit testing and manual testing.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.