Commit a8651357 authored by Gladys Forte's avatar Gladys Forte

{dev bugfix} SU and OUA added query

parent c3979f0a
...@@ -39,9 +39,9 @@ class UserDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet): ...@@ -39,9 +39,9 @@ class UserDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet):
data = User.objects.filter( data = User.objects.filter(
department=code).exclude(id=1) department=code).exclude(id=1)
elif user_type == 'SU': elif user_type == 'SU':
pass data = User.objects.all().exclude(id=1)
elif user_type == 'OUA': elif user_type == 'OUA':
pass data = User.objects.all().exclude(id=1)
else: else:
return Response( return Response(
{"message": "Logged user is unauthorize to access this section"}, {"message": "Logged user is unauthorize to access this section"},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment