Repository navigation
sharing: make sure that we only find the shares from a given owner - #12084
Conversation
|
reviewers needed... maybe @PVince81 @th3fallen @MorrisJobke ? Or someone else? Thanks a lot! |
|
Will also fix: #12106 |
There was a problem hiding this comment.
Note: you can also use $this->assertEmpty() in the future 😄
|
Tested, works 👍 However, it does NOT fix #12106. For me when shared with "group" containing "user2", "user3" and "user4" the share dropdown on the subdir shows "Shared with false" for "user2", "user3", "user4", "group1". This probably needs a different fix. |
Right! I only checked the drop down for the recipients which was fixed with this PR. But the drop-down from the owner seems to be still broken. Will take care of it independent from this PR |
6203da9 to
636f60e
Compare
636f60e to
b924899
Compare
|
@LukasReschke I fixed the phpdoc, maybe you want to have a final look? Thanks! |
|
Sure. - With pleasure :-) |
There was a problem hiding this comment.
damn... next try ;-)
b924899 to
a7ebfe8
Compare
|
Works - great fix 👍 |
|
The inspection completed: 2 new issues, 5 updated code elements |
|
@owncloud-bot retest this please |
|
💣 Test FAILed. 💣 Build result: FAILURE[...truncated 18 lines...] > git rev-parse origin/pr/12084/merge^{commit} # timeout=10Checking out Revision b69c2fa6f4d398a75e21028fcbdc19d956be393c (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f b69c2fa6f4d398a75e21028fcbdc19d956be393c > git rev-list a3c84da313d38ecf77a1ce844a75d0dc14392e31 # timeout=10First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveCleaning workspace > git rev-parse --verify HEAD # timeout=10Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 > git submodule foreach --recursive git reset --hard # timeout=10 > git submodule foreach --recursive git clean -fdx # timeout=10Triggering pull-request-analyser-ng-simple » vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 8 second💣 Test FAILed. 💣 |
|
As Jenkins is broken on existing PRs I will resubmit this as a new PR to invoke the Jenkins test run. |
|
I will merge this if the test run in #12377 succeed. |
sharing: make sure that we only find the shares from a given owner
Make sure that we only find the shares from a given owner and don't expose shares from other users.
How to test:
Expected Result:
The drop down shows
Result before this patch:
The drop down shows