-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Ensure DeleteUser is not allowed to Delete Orgs and visa versa #10134
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10134 +/- ##
==========================================
+ Coverage 43.39% 43.4% +<.01%
==========================================
Files 576 576
Lines 79624 79628 +4
==========================================
+ Hits 34553 34559 +6
+ Misses 40792 40789 -3
- Partials 4279 4280 +1
Continue to review full report at Codecov.
|
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.
Will be nice to add a test for this though.
Do we want to add the reverse? Make sure regular users cannot be deleted from Lines 257 to 275 in b3c72a7
|
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.
Will keep the check at routers/api/v1/admin/user.go:231 ?
@guillep2k |
dd46a81
to
1f20d56
Compare
@adelowo looks like DeleteOrg had already a check .. |
ready to merge 🚀 |
as title (extend/come up in #10125)