-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix(ACL): don't put inherited ACL permissions in the propPatch request payload #2660
Conversation
…t payload Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
/backport to stable27 |
/backport to stable26 |
/backport to stable28 |
@Antreesy Hard to test this before UI is fixed. Ideally I would like a cypress test for this now that we have cypress setup, but it will need the UI to work as well I suppose. |
Indeed, that would require sidebar view to test it. Now, with cypress we do everything with occ commands, one rule at the time, so impoossible to reproduce this error. ATM web interface sends all rules together, which are handled by ACLPlugin propPatch method: groupfolders/lib/DAV/ACLPlugin.php Line 175 in 0026135
As seen from there, it doesn't divide coming rules to inherited and local, consider them all as local, so we shouldn't pass inherited unless they haven't been changed. |
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.
code looks good but i didnt test it
This comment was marked as outdated.
This comment was marked as outdated.
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.
Please disregard my last comment. For some reason I didn't run the code with your commit. Now that I fixed this, it works as expected 🎉
client.propPatch
request makes them local