2011-07-20 17:34:16 +00:00
|
|
|
<?php
|
|
|
|
|
2012-05-03 10:23:29 +00:00
|
|
|
OCP\JSON::checkAppEnabled('files_sharing');
|
2012-05-05 18:56:52 +00:00
|
|
|
OCP\JSON::checkLoggedIn();
|
2012-07-07 14:03:21 +00:00
|
|
|
OCP\JSON::callCheck();
|
2011-07-20 17:34:16 +00:00
|
|
|
|
2012-05-05 18:56:52 +00:00
|
|
|
$source = '/'.OCP\USER::getUser().'/files'.$_POST['source'];
|
|
|
|
$uid_shared_with = $_POST['uid_shared_with'];
|
2011-07-30 23:40:19 +00:00
|
|
|
OC_Share::unshare($source, $uid_shared_with);
|
2011-07-20 17:34:16 +00:00
|
|
|
|
2012-05-05 18:56:52 +00:00
|
|
|
OCP\JSON::success();
|