]> source.dussan.org Git - nextcloud-server.git/commit
When a user is removed we should remove the right shares
authorRoeland Jago Douma <rullzer@owncloud.com>
Fri, 5 Feb 2016 09:01:59 +0000 (10:01 +0100)
committerRoeland Jago Douma <rullzer@owncloud.com>
Fri, 5 Feb 2016 09:05:22 +0000 (10:05 +0100)
commit5f521067d8bbffc37b9700702dcd6abaed89d653
tree8cfac1196d299a647b5dd40c1f6a244d309fe18d
parent342c2aac98961f91f0fd38423a217cb980dd95b8
When a user is removed we should remove the right shares

* This means all the shares directly shared with them
* Or all group shares having a special share with them

This patch fixes the operator precedece (AND before OR).
So before this patch:

(share_with = <deleted user> AND share_type = 0) OR share_type=2

So it deleted all user specific shares

Now:
share_with = <deleted user> AND (share_type = 0 OR (share_type=2)
lib/private/share/hooks.php