some fixes for sharing

remotes/origin/stable4
Georg Ehrke 15 years ago
parent 72c0d6968e
commit 7eb7492360
  1. 3
      apps/files_sharing/ajax/email.php
  2. 2
      apps/files_sharing/ajax/getitem.php
  3. 2
      apps/files_sharing/ajax/setpermissions.php
  4. 2
      apps/files_sharing/ajax/share.php
  5. 2
      apps/files_sharing/ajax/toggleresharing.php
  6. 2
      apps/files_sharing/ajax/unshare.php

@ -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 @@
OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php');
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
$userDirectory = "/".OC_User::getUser()."/files";
$source = $userDirectory.$_GET['source'];

@ -3,7 +3,7 @@
OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php');
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
$source = "/".OC_User::getUser()."/files".$_GET['source'];
$uid_shared_with = $_GET['uid_shared_with'];

@ -3,7 +3,7 @@
OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php');
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
$userDirectory = "/".OC_User::getUser()."/files";
$sources = explode(";", $_POST['sources']);

@ -1,7 +1,5 @@
<?php
require_once('../../../lib/base.php');
OC_JSON::checkAppEnabled('files_sharing');
OC_JSON::checkAdminUser();
if ($_POST['resharing'] == true) {

@ -3,7 +3,7 @@
OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php');
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
$source = "/".OC_User::getUser()."/files".$_GET['source'];
$uid_shared_with = $_GET['uid_shared_with'];

Loading…
Cancel
Save