diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-09 17:37:42 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-09 17:38:35 -0400 |
commit | 93c0e8b3bf2ef8b03c50d307c083628a0a5882ae (patch) | |
tree | 672adf18581a236ae04ed83cc8672af6d19d315e /apps/files_sharing/lib_share.php | |
parent | de6aa0f88c6a471c33ddabd3eaa4d7d53dfe4192 (diff) | |
download | nextcloud-server-93c0e8b3bf2ef8b03c50d307c083628a0a5882ae.tar.gz nextcloud-server-93c0e8b3bf2ef8b03c50d307c083628a0a5882ae.zip |
Fix unsharing files also deleting private link, bug fix for oc-251
Diffstat (limited to 'apps/files_sharing/lib_share.php')
-rwxr-xr-x | apps/files_sharing/lib_share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index 912b5ffdf95..02e4b6e4c26 100755 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -385,7 +385,7 @@ class OC_Share { public static function unshare($source, $uid_shared_with) { $source = self::cleanPath($source); $uid_owner = OCP\USER::getUser(); - $query = OCP\DB::prepare("DELETE FROM *PREFIX*sharing WHERE SUBSTR(source, 1, ?) = ? AND uid_owner = ? AND uid_shared_with ".self::getUsersAndGroups($uid_shared_with)); + $query = OCP\DB::prepare("DELETE FROM *PREFIX*sharing WHERE SUBSTR(source, 1, ?) = ? AND uid_owner = ? AND uid_shared_with ".self::getUsersAndGroups($uid_shared_with, false)); $query->execute(array(strlen($source), $source, $uid_owner)); if ($uid_shared_with != self::PUBLICLINK) { if (OC_Group::groupExists($uid_shared_with)) { |