summaryrefslogtreecommitdiffstats
path: root/core/ajax/share.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-19 22:14:38 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-19 22:14:38 -0400
commit5eca531f99f9615d1a09bbb0b03dda2063901aa7 (patch)
treeb2930aec835286cac4317d219b742c4e7d0cedea /core/ajax/share.php
parentf987e22d85ebcf1761323855a6717a8f482beac5 (diff)
downloadnextcloud-server-5eca531f99f9615d1a09bbb0b03dda2063901aa7.tar.gz
nextcloud-server-5eca531f99f9615d1a09bbb0b03dda2063901aa7.zip
Refactor again so we can tell what item is being reshared in case the same source shows up. This is the end of the share_api branch, moving to master.
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r--core/ajax/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 3eadff431ca..ee9700295ee 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -26,7 +26,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['item']
case 'share':
if (isset($_POST['shareType']) && isset($_POST['shareWith']) && isset($_POST['permissions'])) {
try {
- OCP\Share::shareItem($_POST['itemType'], $_POST['item'], $_POST['shareType'], $_POST['shareWith'], $_POST['permissions']);
+ OCP\Share::shareItem($_POST['itemType'], $_POST['item'], $_POST['item'], (int)$_POST['shareType'], $_POST['shareWith'], $_POST['permissions']);
// TODO May need to return private link
OC_JSON::success();
} catch (Exception $exception) {