|
@@ -476,7 +476,7 @@ module.exports = app => {
|
|
|
u.company_id = companyInfo.id;
|
|
|
u.account_group = companyInfo.type;
|
|
|
if (this._.findIndex(paList, { account: u.account }) === -1 && this._.findIndex(insertData, { account: u.account }) === -1) {
|
|
|
- if (maxUser === 0 || userTotal <= maxUser) {
|
|
|
+ if (maxUser === 0 || userTotal < maxUser) {
|
|
|
insertData.push({
|
|
|
project_id: pid,
|
|
|
account: u.account,
|