perms
This commit is contained in:
parent
0df7db43d3
commit
ee437a7889
|
@ -8,7 +8,7 @@ from rest_framework.permissions import IsAuthenticated
|
|||
ConsumerPerms = [
|
||||
'paper_list',
|
||||
'gen_monitest',
|
||||
'questioncat_list'
|
||||
'questioncat_list',
|
||||
'my_collects',
|
||||
'my_subjects',
|
||||
'my_examtest',
|
||||
|
|
|
@ -64,7 +64,7 @@ class QuestioncatViewSet(ModelViewSet):
|
|||
return Response(serializer.data)
|
||||
|
||||
@action(methods=['get'], detail=False,
|
||||
url_path='subject', url_name='questioncat_subject', pagination_class = None)
|
||||
url_path='subject', url_name='questioncat_subject', pagination_class = None, permission_classes=[])
|
||||
def subject(self, request):
|
||||
"""
|
||||
学科下的全部分类
|
||||
|
@ -74,7 +74,7 @@ class QuestioncatViewSet(ModelViewSet):
|
|||
return Response(serializer.data)
|
||||
|
||||
@action(methods=['get'], detail=False,
|
||||
url_path='workscope', url_name='questioncat_workscope', pagination_class = None)
|
||||
url_path='workscope', url_name='questioncat_workscope', pagination_class = None, permission_classes=[])
|
||||
def workscope(self, request):
|
||||
"""
|
||||
工作类别下的全部分类
|
||||
|
|
Loading…
Reference in New Issue