Skip to content

Commit

Permalink
Merge pull request #72 from AI4Bharat/dev1
Browse files Browse the repository at this point in the history
fixed please login again for fetch projects api issue
  • Loading branch information
KunalTiwary authored May 15, 2024
2 parents cb59ad5 + 7eb1e9f commit 99529a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def list_optimized(self, request):
List all projects with some optimizations.
"""
try:
# projects = self.queryset.filter(annotators=request.user)
projects = self.queryset.filter(annotators=request.user)
if request.user.is_superuser:
projects = self.queryset
elif request.user.role == User.ORGANIZATION_OWNER:
Expand Down

0 comments on commit 99529a4

Please sign in to comment.