2011-08-07 23:20:57 +04:00
|
|
|
<?php
|
2011-11-30 02:11:42 +04:00
|
|
|
//$RUNTIME_NOAPPS = true;
|
2011-08-07 23:20:57 +04:00
|
|
|
|
2012-04-17 21:31:29 +04:00
|
|
|
|
2011-10-01 01:05:10 +04:00
|
|
|
OC_JSON::checkAppEnabled('files_sharing');
|
2011-08-07 23:20:57 +04: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-10-01 01:05:10 +04:00
|
|
|
?>
|