mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 09:16:25 +01:00
Fix bug: partition can be found multiple times with private search off
This commit is contained in:
parent
f6690f2013
commit
9aa156a9b4
@ -182,7 +182,7 @@ class User():
|
|||||||
else:
|
else:
|
||||||
self.accessible_partitions = db.execute(
|
self.accessible_partitions = db.execute(
|
||||||
"""
|
"""
|
||||||
SELECT partition.uuid, partition.name,
|
SELECT DISTINCT partition.uuid, partition.name,
|
||||||
partition.author, partition.body,
|
partition.author, partition.body,
|
||||||
partition.user_id, partition.source
|
partition.user_id, partition.source
|
||||||
FROM partition
|
FROM partition
|
||||||
@ -196,7 +196,7 @@ class User():
|
|||||||
ON contient_user.user_id=?
|
ON contient_user.user_id=?
|
||||||
AND album_id=album.id
|
AND album_id=album.id
|
||||||
UNION
|
UNION
|
||||||
SELECT album.id FROM album
|
SELECT DISTINCT album.id FROM album
|
||||||
JOIN groupe_contient_user
|
JOIN groupe_contient_user
|
||||||
JOIN groupe_contient_album
|
JOIN groupe_contient_album
|
||||||
ON groupe_contient_user.user_id=?
|
ON groupe_contient_user.user_id=?
|
||||||
|
Loading…
Reference in New Issue
Block a user