mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
pass the user to setupFS
This commit is contained in:
parent
8c5831d958
commit
f82946c6a9
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue