fix: show shared folder contents consistently
This commit is contained in:
@@ -51,7 +51,10 @@ func (r *NodeRepository) List(ctx context.Context, userID string, subordinateIDs
|
|||||||
|
|
||||||
switch scope {
|
switch scope {
|
||||||
case "shared":
|
case "shared":
|
||||||
where = append(where, `n.owner_user_id <> $1 AND (
|
if parentID == nil || *parentID == "" {
|
||||||
|
where = append(where, "n.owner_user_id <> $1")
|
||||||
|
}
|
||||||
|
where = append(where, `(
|
||||||
has_node_access(n.id, $1)
|
has_node_access(n.id, $1)
|
||||||
OR n.owner_user_id::text = ANY($2::text[])
|
OR n.owner_user_id::text = ANY($2::text[])
|
||||||
)`)
|
)`)
|
||||||
|
|||||||
Reference in New Issue
Block a user