@ -1,7 +1,4 @@
<?php
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('files_sharing');
$user = OC_User::getUser();
@ -3,7 +3,7 @@
require_once('../lib_share.php');
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
$userDirectory = "/".OC_User::getUser()."/files";
$source = $userDirectory.$_GET['source'];
$source = "/".OC_User::getUser()."/files".$_GET['source'];
$uid_shared_with = $_GET['uid_shared_with'];
$sources = explode(";", $_POST['sources']);
@ -1,7 +1,5 @@
OC_JSON::checkAdminUser();
if ($_POST['resharing'] == true) {