From: Robin Appelman Date: Mon, 18 Apr 2011 07:25:50 +0000 (+0200) Subject: pass the user to setupFS X-Git-Tag: v3.0~267^2~558^2~72^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f82946c6a9dfc394aa725f24dfc236a5fc2db605;p=nextcloud-server.git pass the user to setupFS --- diff --git a/plugins/publiclink/lib_public.php b/plugins/publiclink/lib_public.php index 494f84fdb7a..7c25c938fda 100644 --- a/plugins/publiclink/lib_public.php +++ b/plugins/publiclink/lib_public.php @@ -38,11 +38,8 @@ class OC_PublicLink{ $path=$data[0]['path']; $user=$data[0]['user']; - //login - $_SESSION['user_id']=$user; - //prepare the filesystem - OC_UTIL::setupFS(); + OC_UTIL::setupFS($user); //get time mimetype and set the headers $mimetype=OC_FILESYSTEM::getMimeType($path);