if (method === 'post' || method === 'put') {
                    if (!isAdmin || (!!isAdmin && !accountId)) {
                      req.body.AccountId = parseInt(!/^[0-9a-fA-F]{24}$/.test(user.Account.id) ? user.Account.id : user.Account._id, 10);
                    }
                  } else {