diff options
Diffstat (limited to 'apps/files_sharing/ajax/unshare.php')
-rwxr-xr-x | apps/files_sharing/ajax/unshare.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/files_sharing/ajax/unshare.php b/apps/files_sharing/ajax/unshare.php index 5056c59a3d4..9088bf42663 100755 --- a/apps/files_sharing/ajax/unshare.php +++ b/apps/files_sharing/ajax/unshare.php @@ -1,12 +1,13 @@ <?php -//$RUNTIME_NOAPPS = true; +require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php'); - OCP\JSON::checkAppEnabled('files_sharing'); -require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php'); +OCP\JSON::checkLoggedIn(); -$source = "/".OCP\USER::getUser()."/files".$_GET['source']; -$uid_shared_with = $_GET['uid_shared_with']; +$source = '/'.OCP\USER::getUser().'/files'.$_POST['source']; +$uid_shared_with = $_POST['uid_shared_with']; OC_Share::unshare($source, $uid_shared_with); +OCP\JSON::success(); + ?> |