summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-08-27 10:31:35 +0200
committerBjörn Schießle <schiessle@owncloud.com>2014-08-27 10:31:35 +0200
commitc35d60f6d80dbb244b6223de3fdb894b0ef34d34 (patch)
tree2719e18a9db147b81a0e812add34d427b64bda86 /lib/public
parent2740908a5b168563b60ab9cf40ae274c2ce1df25 (diff)
parent0a77a5ec1938529f4a190df33a35b3a0c9633e4f (diff)
downloadnextcloud-server-c35d60f6d80dbb244b6223de3fdb894b0ef34d34.tar.gz
nextcloud-server-c35d60f6d80dbb244b6223de3fdb894b0ef34d34.zip
Merge pull request #9915 from suraia/unsharefromself-source
Allow specifying the item source in unshareFromSelf().
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index bb9c6ec5886..c8b64cc187c 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -265,8 +265,8 @@ class Share extends \OC\Share\Constants {
*
* Unsharing from self is not allowed for items inside collections
*/
- public static function unshareFromSelf($itemType, $itemTarget) {
- return \OC\Share\Share::unshareFromSelf($itemType, $itemTarget);
+ public static function unshareFromSelf($itemType, $itemOrigin, $originIsSource = false) {
+ return \OC\Share\Share::unshareFromSelf($itemType, $itemOrigin, $originIsSource);
}
/**