Skip to content

Commit

Permalink
Merge pull request #358 from nofusscomputing/development
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc authored Oct 22, 2024
2 parents c24943c + 9d6ea1d commit c3a4685
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/api/views/project_management/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ def retrieve(self, request, *args, **kwargs):
return super().retrieve(request, *args, **kwargs)


def get_queryset(self):

if self.request.user.is_superuser:

return self.queryset.filter()

else:

return self.queryset.filter(Q(organization__in=self.user_organizations()) | Q(is_global = True))


def get_view_name(self):
if self.detail:
return "Project"
Expand Down

0 comments on commit c3a4685

Please sign in to comment.