Skip to content

Commit

Permalink
fix bug: 修改用户报错. 表单提交包括了,被隐藏的字段值. 后段代码兼容隐藏的字段值
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao authored and sunhaolin committed Jul 15, 2024
1 parent 6217f0c commit 0c384b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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('禁止修改用户邀请状态');
}

Expand Down

0 comments on commit 0c384b9

Please sign in to comment.