Skip to content

Commit 1df44a6

Browse files
Gpetrakgiohappy
authored andcommitted
exclude retrieve action from the advertised filter
1 parent d8699c1 commit 1df44a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

geonode/base/api/filters.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ def filter_queryset(self, request, queryset, view):
138138
# advertised
139139
# if superuser, all resources will be visible, otherwise only the advertised one and
140140
# the resource which the user is owner will be returned
141+
142+
if getattr(view, "action", None) == "retrieve":
143+
return queryset
144+
141145
user = request.user
142146
try:
143147
_filter = request.query_params.get("advertised", "None")

0 commit comments

Comments
 (0)