2011-08-07 19:20:57 +00:00
|
|
|
<?php
|
2011-11-29 22:11:42 +00:00
|
|
|
//$RUNTIME_NOAPPS = true;
|
2011-08-07 19:20:57 +00:00
|
|
|
|
2012-04-17 17:31:29 +00:00
|
|
|
|
2011-09-30 21:05:10 +00:00
|
|
|
OC_JSON::checkAppEnabled('files_sharing');
|
2011-08-07 19:20:57 +00:00
|
|
|
require_once('../lib_share.php');
|
|
|
|
|
|
|
|
$source = "/".OC_User::getUser()."/files".$_GET['source'];
|
|
|
|
$uid_shared_with = $_GET['uid_shared_with'];
|
|
|
|
$permissions = $_GET['permissions'];
|
|
|
|
OC_Share::setPermissions($source, $uid_shared_with, $permissions);
|
|
|
|
|
2011-09-30 21:05:10 +00:00
|
|
|
?>
|