summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-15 17:37:16 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-15 17:37:16 -0400
commit5b09aef1661c67e6d253041f78bf98c086ca0879 (patch)
tree0c59932565a514833054ee0de0ac43b69778b1cf /apps/files_sharing/ajax
parent5cb687d168280a14ff10ff096d4d13dc76849e17 (diff)
downloadnextcloud-server-5b09aef1661c67e6d253041f78bf98c086ca0879.tar.gz
nextcloud-server-5b09aef1661c67e6d253041f78bf98c086ca0879.zip
Additional user group sharing support and more clean-up in the constructor
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/share.php6
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";
}