]> source.dussan.org Git - nextcloud-server.git/commit
Fix reshare permission change to not impair other deletion code
authorVincent Petry <pvince81@owncloud.com>
Tue, 20 Jan 2015 12:09:39 +0000 (13:09 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 22 Jan 2015 09:12:47 +0000 (10:12 +0100)
commit9f137ac25991da89425f6140dc5e078bd0f7d21d
tree386c439286ed0a6b78b8e53e58e1a57f52b710e0
parent4894a2c458f49b2c6b49b18cc0055ae087bff1b2
Fix reshare permission change to not impair other deletion code

A recent change that prevents reshare permission changes to delete group
share children had the side-effect of also preventing group share
children deletion when it needed to be done.

This fix adds an extra flag to isolate the "reshare permission change"
deletion case and keep the other ones as they were before, not only to
fix the regression but also fix other potential regressions in code that
uses this method.

Also updated the comment because now Helper::delete() is no longer
limited to reshares but also applies to group share children.
lib/private/share/helper.php
lib/private/share/share.php
tests/lib/share/share.php