shareType and permissions are integers

remotes/origin/fix-10825
Bjoern Schiessle 12 years ago
parent b6f63e9b3d
commit e9e7ee67d3
  1. 4
      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();
}

Loading…
Cancel
Save