#NEWLINE# def get_queryset( self ) : #NEWLINE# #INDENT# queryset = super ( ProjectGroupPermissionViewSet , self ) . get_queryset ( ) #NEWLINE# user_uuid = self . request . query_params . get ( 'user' , None ) #NEWLINE# if ( user_uuid is not None ) : #NEWLINE# #INDENT# queryset = queryset . filter ( user__uuid = user_uuid ) #NEWLINE# #UNINDENT# if ( not self . request . user . is_staff ) : #NEWLINE# #INDENT# queryset = queryset . filter ( ( ( Q ( group__projectgrouprole__project_group__customer__roles__permission_group__user = self . request . user , group__projectgrouprole__project_group__customer__roles__role_type = models . CustomerRole . OWNER ) | Q ( group__projectgrouprole__project_group__projects__roles__permission_group__user = self . request . user ) ) | Q ( group__projectgrouprole__project_group__roles__permission_group__user = self . request . user ) ) ) . distinct ( ) #NEWLINE# #UNINDENT# return user_uuid