Skip to content

Commit

Permalink
Merge pull request #1680 from st1020/fix/fix-user-model
Browse files Browse the repository at this point in the history
fix: user model get_projects method
  • Loading branch information
Bidaya0 authored Jul 31, 2023
2 parents 1abb9f5 + 90268e6 commit eebaf2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dongtai_common/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,5 @@ def get_projects(self) -> QuerySet:
queryset = IastProject.objects.none()
if self.is_global_permission:
return IastProject.objects.all()
return patch_point(self, queryset)
_, queryset = patch_point(self, queryset)
return queryset

0 comments on commit eebaf2f

Please sign in to comment.