|
@@ -858,7 +858,7 @@ class DocumentStatusApi(DocumentResource):
|
|
|
continue
|
|
|
# 本人 本人
|
|
|
if dataset.edit_auth == 1:
|
|
|
- if current_user != dataset.created_by:
|
|
|
+ if current_user.id != dataset.created_by:
|
|
|
document.enable_applicant = current_user.id
|
|
|
document.check_status = 1
|
|
|
db.session.commit()
|
|
@@ -902,7 +902,7 @@ class DocumentStatusApi(DocumentResource):
|
|
|
if not document.enabled:
|
|
|
continue
|
|
|
if dataset.edit_auth == 1:
|
|
|
- if current_user != dataset.created_by:
|
|
|
+ if current_user.id != dataset.created_by:
|
|
|
document.enable_applicant = current_user.id
|
|
|
db.session.commit()
|
|
|
return {"result": "该操作需要提交所有者审核后生效,请确认是否提交"}, 200
|