-
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
Exclude users from sharing if they are a member of any excluded group - util.php #31819
Conversation
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 wonder from where this is called, we should find this for the acceptance tests to trigger it |
Ouch, lots of them.
As I can see it might be reflected on "oc:permissions" for a received share: the user wouldn't be able to reshare. The share permission would be missing on that entry. |
Codecov Report
@@ Coverage Diff @@
## master #31819 +/- ##
============================================
- Coverage 63.24% 63.24% -0.01%
+ Complexity 18455 18454 -1
============================================
Files 1158 1158
Lines 69305 69304 -1
Branches 1261 1261
============================================
- Hits 43830 43829 -1
Misses 25105 25105
Partials 370 370
Continue to review full report at Codecov.
|
Okay, I looked deeper and found out that the code in question is dead: this PR adjusts The public namespace one I quickly grepped through apps I had checked out locally (ex: gallery) and none seem to be using this. We could remove it in the next release. To play it safe, let's merge this then but I don't see any way to test it. |
backport conflict... investigating... |
Backport |
The conflict is like always nowadays - many lines of code between |
Yes, I agree - I could not see anything that currently uses it, but was not sure if there might be some other app out there that does use it still. I just "happened" to use it in #31816 and thus noticed the missing logic. I will amend that PR to use a not-deprecated method. I guess we could tag this old method as deprecated? @PVince81 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Apply changes from PR #31490 to the "copy" of the logic that (unfortunately) is in
lib/private/legacy/util.php
isSharingDisabledForUser()
Related Issue
https://github.com/owncloud/enterprise/issues/2508
Motivation and Context
Fix all copies of this code.
Discovered while doing the code for issue #31817 PR #31816
How Has This Been Tested?
Unit test change.
Types of changes
Checklist: