diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-12 21:33:05 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-12 21:33:05 -0400 |
commit | 6f55a528581f5e6ef830cb107f2cdf756ad2f79e (patch) | |
tree | 528f4a8b67115f1e7231b9a85778193dac79d59d /apps/files_sharing/lib_share.php | |
parent | db1353655b1d27c545e438e3d36b0d5889a91668 (diff) | |
download | nextcloud-server-6f55a528581f5e6ef830cb107f2cdf756ad2f79e.tar.gz nextcloud-server-6f55a528581f5e6ef830cb107f2cdf756ad2f79e.zip |
Fix incorrect creation of filesystem for user@group in data folder during shares
Diffstat (limited to 'apps/files_sharing/lib_share.php')
-rw-r--r-- | apps/files_sharing/lib_share.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index cf5456d7042..356c958b6ce 100644 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -104,10 +104,6 @@ class OC_Share { $counter++; } } - if (isset($gid)) { - $uid = $uid."@".$gid; - } - $query->execute(array($uid_owner, $uid, $source, $target, $permissions)); // Update mtime of shared folder to invoke a file cache rescan $rootView=new OC_FilesystemView('/'); if (!$rootView->is_dir($sharedFolder)) { @@ -119,6 +115,10 @@ class OC_Share { $rootView->mkdir($sharedFolder); } $rootView->touch($sharedFolder); + if (isset($gid)) { + $uid = $uid."@".$gid; + } + $query->execute(array($uid_owner, $uid, $source, $target, $permissions)); } } } |