Skip to content

Commit 19706b0

Browse files
committed
Merge branch 'main' into sbl-proximity-search
2 parents 44654d3 + f9f32db commit 19706b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/core/api/viewsets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,8 @@ def get_queryset(self):
22952295
)
22962296
# Abilities are computed based on logged-in user's role and
22972297
# the user role on each document access
2298-
.annotate(user_roles=db.Subquery(user_roles_query)).distinct()
2298+
.annotate(user_roles=db.Subquery(user_roles_query))
2299+
.distinct()
22992300
)
23002301
return queryset
23012302

0 commit comments

Comments
 (0)