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

This commit is contained in:
Björn Schießle 2013-04-22 14:12:18 +02:00
parent 1705938848
commit b24a673714
1 changed files with 6 additions and 6 deletions

View File

@ -150,10 +150,10 @@ class Share {
FROM FROM
`*PREFIX*share` `*PREFIX*share`
WHERE 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 ) ) { if ( \OC_DB::isError( $result ) ) {
\OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR ); \OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR );
@ -170,10 +170,10 @@ class Share {
FROM FROM
`*PREFIX*share` `*PREFIX*share`
WHERE 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 ) ) { if ( \OC_DB::isError( $result ) ) {
\OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR ); \OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR );
@ -190,10 +190,10 @@ class Share {
FROM FROM
`*PREFIX*share` `*PREFIX*share`
WHERE 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 ) ) { if ( \OC_DB::isError( $result ) ) {
\OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR ); \OC_Log::write( 'OCP\Share', \OC_DB::getErrorMessage($result), \OC_Log::ERROR );