machristie commented on code in PR #184:
URL:
https://github.com/apache/airavata-django-portal/pull/184#discussion_r1312042392
##########
django_airavata/apps/api/views.py:
##########
@@ -1756,6 +1756,32 @@ def get(self, request, format=None):
response.data['offset'] = offset
return response
+class CpuUsageView(APIView):
+ # TODO: restrict to only Admins or Read Only Admins group members
Review Comment:
You can do this by setting
```
permission_classes = (IsAuthenticated, IsInAdminsGroupPermission,)
```
See IAMUserViewSet for example.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]