Commit 69019450 authored by Gladys Forte's avatar Gladys Forte

Merge branch 'core-dev-gladys' into 'core-dev'

{dev bugfix} SU and OUA added query

See merge request rms/Backend/api-main-service!846
parents 4f2b8650 a8651357
......@@ -39,9 +39,9 @@ class UserDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet):
data = User.objects.filter(
department=code).exclude(id=1)
elif user_type == 'SU':
pass
data = User.objects.all().exclude(id=1)
elif user_type == 'OUA':
pass
data = User.objects.all().exclude(id=1)
else:
return Response(
{"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