feat: 报废提交不需要限制接收人
This commit is contained in:
parent
b6b72b2826
commit
7510b2fc31
|
@ -347,6 +347,7 @@ class HandoverViewSet(CustomModelViewSet):
|
|||
"""
|
||||
ins: Handover = self.get_object()
|
||||
user: User = self.request.user
|
||||
if ins.type != Handover.H_SCRAP:
|
||||
if user == ins.recive_user or user.belong_dept == ins.recive_user.belong_dept:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue