Fakultas Ilmu Komputer UI

Commit 43c6d0e9 authored by Muhammad Dzikra Muzaki's avatar Muhammad Dzikra Muzaki
Browse files

[REFACTOR] Update filters for donasi barang

parent 82f5cf36
Pipeline #82050 passed with stages
in 2 minutes and 25 seconds
......@@ -139,9 +139,10 @@ class ProgramDonationListGDS(generics.ListAPIView):
def filter_queryset(self, queryset):
queryset = super().filter_queryset(queryset)
if not self.request.user.is_staff:
return queryset.filter(user=self.request.user)
return queryset
# if not self.request.user.is_staff:
# return queryset.filter(user=self.request.user)
# return queryset
return queryset.filter(user=self.request.user)
class ProgramDonationDetail(generics.RetrieveUpdateAPIView):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment