diff options
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r-- | apps/files_sharing/ajax/share.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php index 0e28619217d..f0166f391db 100644 --- a/apps/files_sharing/ajax/share.php +++ b/apps/files_sharing/ajax/share.php @@ -11,11 +11,7 @@ foreach ($sources as $source) { if ($source && OC_FILESYSTEM::file_exists($source) && OC_FILESYSTEM::is_readable($source)) { $source = "/".OC_User::getUser()."/files".$source; try { - if (OC_Group::groupExists($uid_shared_with)) { - new OC_Share($source, $uid_shared_with, $permissions, true); - } else { - new OC_Share($source, $uid_shared_with, $permissions); - } + new OC_Share($source, $uid_shared_with, $permissions); } catch (Exception $exception) { echo "false"; } |