diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-08 16:18:15 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-09 15:41:06 +0100 |
commit | 10b9bf15f4a428b7455755f1fd2c684b47c3f75c (patch) | |
tree | 86c9d98548e86b4f49283c654e83ed7ae5fba6b8 /apps/federatedfilesharing/lib | |
parent | cbb7934fb3ad69e84bf8b1bbe310ee2700e778a3 (diff) | |
download | nextcloud-server-10b9bf15f4a428b7455755f1fd2c684b47c3f75c.tar.gz nextcloud-server-10b9bf15f4a428b7455755f1fd2c684b47c3f75c.zip |
Set share owner and share initiator on upate as well
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r-- | apps/federatedfilesharing/lib/federatedshareprovider.php | 2 |
1 files changed, 2 insertions, 0 deletions
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; |