diff --git a/services/standard-space/main/default/triggers/space_users.trigger.js b/services/standard-space/main/default/triggers/space_users.trigger.js index be342cfaf5..c48faeee01 100644 --- a/services/standard-space/main/default/triggers/space_users.trigger.js +++ b/services/standard-space/main/default/triggers/space_users.trigger.js @@ -2,7 +2,7 @@ * @Author: sunhaolin@hotoa.com * @Date: 2022-12-07 14:19:57 * @LastEditors: baozhoutao@steedos.com - * @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('禁止修改用户邀请状态'); }