- 修复TransferLegacyWeixins中删除角色的BUG
This commit is contained in:
@@ -115,7 +115,14 @@ func TransferLegacyWeixins(mobile string) (err error) {
|
||||
}
|
||||
} else {
|
||||
if mobile != "" {
|
||||
api2.RoleMan.DeleteRole4User(user.GetID(), autils.NewRole(authz.StoreRoleBoss, v.JxStoreID))
|
||||
rList, err2 := api2.RoleMan.GetUserRoleList(user.GetID())
|
||||
if err = err2; err == nil {
|
||||
for _, role := range rList {
|
||||
if role.StoreID > 0 {
|
||||
api2.RoleMan.DeleteRole4User(user.GetID(), autils.NewRole(authz.StoreRoleBoss, role.StoreID))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user