mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-21 03:19:52 +00:00
perf: 修改细节
This commit is contained in:
@@ -9,5 +9,4 @@ class IsAssignee(permissions.BasePermission):
|
||||
|
||||
class NotClosed(permissions.BasePermission):
|
||||
def has_object_permission(self, request, view, obj):
|
||||
return True
|
||||
return not obj.status_closed
|
||||
|
Reference in New Issue
Block a user