summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-08 14:12:03 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-08 14:12:03 +0100
commit1362c0b67a42873e57dc69437a39c4473caef1a5 (patch)
tree001e3b7dd4100cf8ef069f83d7372bed7fa6e1d6 /lib/public
parent2ec4ca38d23b105c070adae67b5d42e7a30c5bc4 (diff)
parent698ecbf308d1eae950138bff9edbb0d542c391d0 (diff)
downloadnextcloud-server-1362c0b67a42873e57dc69437a39c4473caef1a5.tar.gz
nextcloud-server-1362c0b67a42873e57dc69437a39c4473caef1a5.zip
Merge pull request #12452 from owncloud/server2server-ng-ocs
OCS API for server-to-server sharing
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index b3ece8fab94..60e5a6fd85b 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -242,10 +242,11 @@ class Share extends \OC\Share\Constants {
* @param string $itemSource
* @param int $shareType SHARE_TYPE_USER, SHARE_TYPE_GROUP, or SHARE_TYPE_LINK
* @param string $shareWith User or group the item is being shared with
+ * @param string $owner owner of the share, if null the current user is used
* @return boolean true on success or false on failure
*/
- public static function unshare($itemType, $itemSource, $shareType, $shareWith) {
- return \OC\Share\Share::unshare($itemType, $itemSource, $shareType, $shareWith);
+ public static function unshare($itemType, $itemSource, $shareType, $shareWith, $owner = null) {
+ return \OC\Share\Share::unshare($itemType, $itemSource, $shareType, $shareWith, $owner);
}
/**