-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Remove redundant checks for _User as it now uses ACL #4792
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
Conversation
Would perhaps make sense to add a test to check that the user can not lock herself out by changing her ACL? Not sure how to go about it however |
@mullwaden there are 3 tests failing, so obviously, you’re onto something. You can run your tests locally with Also, i’m Not sure that all 3 tests should be removed. |
Codecov Report
@@ Coverage Diff @@
## master #4792 +/- ##
==========================================
+ Coverage 92.69% 92.69% +<.01%
==========================================
Files 119 119
Lines 8679 8669 -10
==========================================
- Hits 8045 8036 -9
+ Misses 634 633 -1
Continue to review full report at Codecov.
|
Ah, rookie mistake... So the 3 errors in question:
For user there is a special case that when the |
@mullwaden Would this PR would accepted. Your solution would help me and let other users modify other users. I would hope 👍 |
@mullwaden sorry I dropped the ball on this one. Can we add tests that ensure that the safeguards that were in place are still properly working? We removed some security checks so I'd like to be 100% sure that everything is still safe. |
@mullwaden Could you create some tests for it? |
Bit unsure here, did we not come to the conclusion that it was probably not a good idea to make this change in #4789 ? One quick fix could then be to overwrite the setACL function on _User so that it prints a warning that ACL can't be used on the _User object. |
We should add tests that by default users can’t be overwritten by another user, or worst by an unauthenticated call. Originally those were protected by code, now it isn’t. The last thing we want, is to have a publicly accessible and opened user table |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Fixes #4647