Skip to content

Commit

Permalink
fixed please login again for fetch projects api issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikvirendrar committed May 14, 2024
1 parent 7546df6 commit 7eb1e9f
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 7eb1e9f

Please sign in to comment.