diff options
| author | Hongyuan Ma | 2018-07-07 10:57:06 +0000 |
|---|---|---|
| committer | Hongyuan Ma | 2018-07-07 10:57:06 +0000 |
| commit | 3c2fc9dfee3f0a6666d4ac67653ab82d3e1f6cca (patch) | |
| tree | c34f49d781095b6912c6c8ea54e21fa89c047d7b /web/apps | |
| parent | 09a4efbfa96fbc60b800ac521599c12161799f2f (diff) | |
add MachineTable in portal page
Diffstat (limited to 'web/apps')
| -rw-r--r-- | web/apps/user_operation/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/apps/user_operation/views.py b/web/apps/user_operation/views.py index 5e8ea8a..fb46d05 100644 --- a/web/apps/user_operation/views.py +++ b/web/apps/user_operation/views.py @@ -16,6 +16,7 @@ class UserMachineListViewSet(mixins.ListModelMixin, viewsets.GenericViewSet): List test records """ authentication_classes = (JSONWebTokenAuthentication, authentication.SessionAuthentication ) + permission_classes = (permissions.IsAuthenticated, ) queryset = UserMachine.objects.all().order_by('add_time') serializer_class = UserMachineManageSerializer # pagination_class = StandardResultsSetPagination |
