]> source.dussan.org Git - nextcloud-server.git/commit
First process group shares and then user shares 2110/head
authorVincent Petry <pvince81@owncloud.com>
Wed, 2 Nov 2016 15:19:46 +0000 (16:19 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 14 Nov 2016 13:39:17 +0000 (14:39 +0100)
commit3fe7186e319233dac0f32ab09b60adce5ad3b4aa
tree6dacd7e655c1c144aa71aae7570b44738b70df7b
parentcebb68992509215163f6776b76e48411a31a287e
First process group shares and then user shares

This prevents a validation failure where the code checks whether a file
is already shared with another user, but the check disables itself when
the owner is the same. Processing the groups first prevents the check
to kick in too early when the group share still has the old owner while
we try transferring the user share.
apps/files/lib/Command/TransferOwnership.php