-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[For 10.4] user is only allowed to see their own home trashbin #36488
Conversation
83541d1
to
4ea0c2b
Compare
Codecov Report
@@ Coverage Diff @@
## master #36488 +/- ##
============================================
+ Coverage 64.68% 64.68% +<.01%
- Complexity 19023 19026 +3
============================================
Files 1268 1268
Lines 74362 74371 +9
Branches 1309 1309
============================================
+ Hits 48100 48106 +6
- Misses 25876 25879 +3
Partials 386 386
Continue to review full report at Codecov.
|
8f37218
to
b2c08a9
Compare
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.
Looks good from QA acceptance test point of view
b2c08a9
to
d7710af
Compare
@micbar this needs a developer technical review of the code, then IMO it can be merged for 10.4 release. |
list(, $name) = \Sabre\Uri\split($principalInfo['uri']); | ||
$sessionUser = \OC::$server->getUserSession()->getUser(); | ||
if ($sessionUser === null || $name !== $sessionUser->getUID()) { | ||
throw new NotAuthenticated(); |
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.
shall we log something here?
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.
I looked at similar classes, generally, we do not log anything in RootCollections, I could not find specific things to log. If you have any suggestions, I can add it.
d7710af
to
1bffb58
Compare
@DeepDiver1975 or somebody - review again, and we can merge? |
Description
User is only allowed to see their own home trashbin.
Related Issue
Motivation and Context
Trashbin API had allowed users to see the trashbin content of other users. This bug has been resolved.
How Has This Been Tested?
Followed #36378's reproduce steps. Also, acceptance tests already cover this issue.
Types of changes
Checklist: