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