]> source.dussan.org Git - nextcloud-server.git/commitdiff
the owner uid is not interesting. We want to get all users who have access to the...
authorBjörn Schießle <schiessle@owncloud.com>
Mon, 22 Apr 2013 12:12:18 +0000 (14:12 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Mon, 22 Apr 2013 12:12:18 +0000 (14:12 +0200)
lib/public/share.php

index acdf895c9204e15c671348031f1ede92928f6a7b..9fd8eb42fb7b1b85c4095ea9be9422a80c9cdd6c 100644 (file)
@@ -150,10 +150,10 @@ class Share {
                                        FROM
                                        `*PREFIX*share`
                                        WHERE
-                                       item_source = ? AND share_type = ? AND uid_owner = ?'
+                                       item_source = ? AND share_type = ?'
                        );
                        
-                       $result = $query->execute( array( $source,  self::SHARE_TYPE_USER, $user ) );
+                       $result = $query->execute( array( $source,  self::SHARE_TYPE_USER ) );
 
                        if ( \OC_DB::isError( $result ) ) {
                                \OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR );
@@ -170,10 +170,10 @@ class Share {
                                        FROM
                                        `*PREFIX*share`
                                        WHERE
-                                       item_source = ? AND share_type = ? AND uid_owner = ?'
+                                       item_source = ? AND share_type = ?'
                        );
                        
-                       $result = $query->execute( array( $source, self::SHARE_TYPE_GROUP, $user ) );
+                       $result = $query->execute( array( $source, self::SHARE_TYPE_GROUP ) );
 
                        if ( \OC_DB::isError( $result ) ) {
                                \OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR );
@@ -190,10 +190,10 @@ class Share {
                                        FROM
                                        `*PREFIX*share`
                                        WHERE
-                                       item_source = ? AND share_type = ? AND uid_owner = ?'
+                                       item_source = ? AND share_type = ?'
                        );
                        
-                       $result = $query->execute( array( $source, self::SHARE_TYPE_LINK, $user ) );
+                       $result = $query->execute( array( $source, self::SHARE_TYPE_LINK ) );
                        
                        if ( \OC_DB::isError( $result ) ) {
                                \OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR );