server/apps/files_sharing/ajax/unshare.php

13 lines
302 B
PHP
Raw Normal View History

<?php
//$RUNTIME_NOAPPS = true;
2012-05-03 10:23:29 +00:00
OCP\JSON::checkAppEnabled('files_sharing');
2012-04-27 21:12:11 +00:00
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
2012-05-01 16:50:31 +00:00
$source = "/".OCP\USER::getUser()."/files".$_GET['source'];
$uid_shared_with = $_GET['uid_shared_with'];
OC_Share::unshare($source, $uid_shared_with);
?>