nextcloud/apps/files_sharing/ajax/unshare.php

13 lines
302 B
PHP
Raw Normal View History

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