Repository navigation
Fix getItemSharedWithUser for groups - #13423
Conversation
Fixed SQL query for whenever a user has more than one group. Added missing $owner where clause for group lookup. Added unit tests for the group cases.
|
To test, use these steps: #13361 (comment) Also fixes #13361 |
|
@karlitschek backport to stable7 would be good, at least 4 cases were observed there here: #12475 |
There was a problem hiding this comment.
Nice :) Didn't know of that one. You can pass in an array and it will resolve one ?with all group elements? 🚀 science ;)
|
@PVince81 agreed. Please backport :-) |
|
The inspection completed: 9 new issues, 3 updated code elements |
|
Refer to this link for build results (access rights to CI server needed): |
|
Confirmed to work by @GreenArchon in #12475 (comment) |
|
👍 – would love getting some feedback from others more familiar with the sharing code before merging though. |
|
Yes. In the absence of child entry it will set the "parent" field to the group share instead. |
|
@schiesbn can you review this ? |
|
@PVince81 Then you get the 👍 from me. Because everything else works. u3 has the share and can work with it. |
…multiplegroups Fix getItemSharedWithUser for groups
|
@PVince81 Please backport ;) |
|
I'm on it. There are conflicts, so I'll submit a PR for the backport. |
|
There are complications during the backport, needs an additional fix: #13463 |

Fixed SQL query for whenever a user has more than one group.
Added missing $owner where clause for group lookup.
Added unit tests for the group cases.
Fixes #12475
Please review @icewind1991 @schiesbn @LukasReschke @MorrisJobke @DeepDiver1975