Merge pull request #6929 from jumpserver/pr@dev@ticket_comment

perf: 工单优化
pull/6933/head
老广 2021-09-22 15:51:10 +08:00 committed by GitHub
commit 6b7554d69a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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)