作者 陈志颖

合并分支 'dev' 到 'test'

fix:修复权限变动无法登录问题



查看合并请求 !35
@@ -213,7 +213,7 @@ func (svr *PgLoginService) PartnerStaticInfo() (interface{}, error) { @@ -213,7 +213,7 @@ func (svr *PgLoginService) PartnerStaticInfo() (interface{}, error) {
213 return response, e 213 return response, e
214 } 214 }
215 var mapCompanyAdminUsers map[int64]*domain.Users = make(map[int64]*domain.Users) //key:company_id value:domain.users 215 var mapCompanyAdminUsers map[int64]*domain.Users = make(map[int64]*domain.Users) //key:company_id value:domain.users
216 - if _, adminUsers, e := UsersRepository.Find(map[string]interface{}{"inCompanyIds": doGetCompanyIds(), "adminType": 2, "deleteAtIsNull": true, "isSenior": 1}); e == nil { 216 + if _, adminUsers, e := UsersRepository.Find(map[string]interface{}{"inCompanyIds": doGetCompanyIds(), "adminType": 2, "deleteAtIsNull": true}); e == nil {
217 for i := range adminUsers { 217 for i := range adminUsers {
218 mapCompanyAdminUsers[adminUsers[i].CompanyId] = adminUsers[i] 218 mapCompanyAdminUsers[adminUsers[i].CompanyId] = adminUsers[i]
219 } 219 }