Skip to content

Commit

Permalink
Check user is allowed on organization
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelagz committed Nov 10, 2023
1 parent acbfa18 commit 2632405
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/auth_and_perms/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def list(self, request, *args, **kwargs):
if validate_serializer.is_valid():
self.object = validate_serializer.validated_data.get('object')
self.organization = validate_serializer.validated_data.get('organization')
user_is_allowed_on_organization(request.user, self.organization)
queryset = self.get_queryset()
total = queryset.count()
queryset = self.filter_queryset(queryset)
Expand Down

0 comments on commit 2632405

Please sign in to comment.