From 10b9bf15f4a428b7455755f1fd2c684b47c3f75c Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Mon, 8 Feb 2016 16:18:15 +0100 Subject: Set share owner and share initiator on upate as well --- apps/federatedfilesharing/lib/federatedshareprovider.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/federatedfilesharing') diff --git a/apps/federatedfilesharing/lib/federatedshareprovider.php b/apps/federatedfilesharing/lib/federatedshareprovider.php index 0825a0e69bc..0e6089bde07 100644 --- a/apps/federatedfilesharing/lib/federatedshareprovider.php +++ b/apps/federatedfilesharing/lib/federatedshareprovider.php @@ -220,6 +220,8 @@ class FederatedShareProvider implements IShareProvider { $qb->update('share') ->where($qb->expr()->eq('id', $qb->createNamedParameter($share->getId()))) ->set('permissions', $qb->createNamedParameter($share->getPermissions())) + ->set('uid_owner', $qb->createNamedParameter($share->getShareOwner())) + ->set('uid_initiator', $qb->createNamedParameter($share->getSharedBy())) ->execute(); return $share; -- cgit v1.2.3