mirror of https://github.com/jumpserver/jumpserver
perf: 工单优化
parent
da2dea5003
commit
5923562440
|
@ -15,7 +15,4 @@ class IsApplicant(permissions.BasePermission):
|
|||
|
||||
class IsAssignee(permissions.BasePermission):
|
||||
def has_permission(self, request, view):
|
||||
if view.action == 'list':
|
||||
return view.ticket.has_all_assignee(request.user)
|
||||
elif view.action == 'create':
|
||||
return view.ticket.has_current_assignee(request.user)
|
||||
return view.ticket.has_all_assignee(request.user)
|
||||
|
|
Loading…
Reference in New Issue