summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-04-22 14:12:18 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-04-22 14:12:18 +0200
commitb24a673714289bf515c93999a1dd0dfc552eb7cc (patch)
tree5449d0062c63e7e35b797e7c8f65db2d4666532f /lib/public
parent17059388482eabf6a1d05ea4c8d09e0f67ed9c43 (diff)
downloadnextcloud-server-b24a673714289bf515c93999a1dd0dfc552eb7cc.tar.gz
nextcloud-server-b24a673714289bf515c93999a1dd0dfc552eb7cc.zip
the owner uid is not interesting. We want to get all users who have access to the given item source, no matter from whom it was shared
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index acdf895c920..9fd8eb42fb7 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -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 );