Commit e9e7ee67 authored by Bjoern Schiessle's avatar Bjoern Schiessle
Browse files

shareType and permissions are integers

parent b6f63e9b
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment