-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug: 修改用户报错. 表单提交包括了,被隐藏的字段值. 后段代码兼容隐藏的字段值
- Loading branch information
1 parent
6217f0c
commit 0c384b9
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: [email protected] | ||
* @Date: 2022-12-07 14:19:57 | ||
* @LastEditors: [email protected] | ||
* @LastEditTime: 2024-02-27 10:33:37 | ||
* @LastEditTime: 2024-03-22 09:57:48 | ||
* @Description: | ||
*/ | ||
"use strict"; | ||
|
@@ -538,7 +538,7 @@ module.exports = { | |
} | ||
} | ||
|
||
if(suDoc.user != userId && _.has(doc, 'invite_state') && doc.invite_state != 'pending'){ | ||
if(suDoc.user != userId && _.has(doc, 'invite_state') && doc.invite_state != 'pending' && suDoc.invite_state !=doc.invite_state){ | ||
throw new Error('禁止修改用户邀请状态'); | ||
} | ||
|
||
|