2011-08-07 19:20:57 +00:00
|
|
|
<?php
|
2011-10-04 13:58:54 +00:00
|
|
|
//$RUNTIME_NOAPPS = true;
|
2011-08-07 19:20:57 +00:00
|
|
|
|
|
|
|
require_once('../../../lib/base.php');
|
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
|
|
|
?>
|