aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-01-07 18:14:53 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-01-07 18:14:53 +0100
commitbfb6e350d54329bcf9ca91c0b44506a6eef13887 (patch)
treeb0966a4fa905fc29866332ab549c33df7242a348 /core/ajax
parent10505bdb0db4d14ce86815b57d2bca2ef880a581 (diff)
parente9e7ee67d373e138b4a9749f9e9a7847a7d3875d (diff)
downloadnextcloud-server-bfb6e350d54329bcf9ca91c0b44506a6eef13887.tar.gz
nextcloud-server-bfb6e350d54329bcf9ca91c0b44506a6eef13887.zip
Merge pull request #13016 from owncloud/sharing_fixes
don't delete share table entries for the unique name if re-share permission was removed
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 2831d42a367..1a2faa75dac 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -73,9 +73,9 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$return = OCP\Share::setPermissions(
$_POST['itemType'],
$_POST['itemSource'],
- $_POST['shareType'],
+ (int)$_POST['shareType'],
$_POST['shareWith'],
- $_POST['permissions']
+ (int)$_POST['permissions']
);
($return) ? OC_JSON::success() : OC_JSON::error();
}