...
|
...
|
@@ -168,6 +168,7 @@ loopUser1: |
|
|
if vv.OrgID == int(currentAccess.OrganizationId) {
|
|
|
currentOrgIsOK = true
|
|
|
currentAccess.UserId = int64(v.UserId)
|
|
|
currentAccess.UserBaseId = int64(v.UserBaseId)
|
|
|
break loopUser1
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -181,6 +182,7 @@ loopUser1: |
|
|
currentAccess.CompanyId = int64(v.Company.CompanyId)
|
|
|
for _, vv := range v.UserOrg {
|
|
|
currentAccess.UserId = int64(v.UserId)
|
|
|
currentAccess.UserBaseId = int64(v.UserBaseId)
|
|
|
currentAccess.OrganizationId = int64(vv.OrgID)
|
|
|
currentOrgIsOK = true
|
|
|
break loopUser2
|
...
|
...
|
@@ -191,6 +193,7 @@ loopUser1: |
|
|
loginToken := domain.LoginToken{
|
|
|
UserId: currentAccess.UserId,
|
|
|
Account: currentAccess.Account,
|
|
|
UserBaseId: currentAccess.UserBaseId,
|
|
|
CompanyId: currentAccess.CompanyId,
|
|
|
OrgId: currentAccess.OrganizationId,
|
|
|
Platform: currentAccess.Platform,
|
...
|
...
|
|