作者 唐旭辉

bug 修复

... ... @@ -221,7 +221,7 @@ func (c *RbacController) RoleList() {
return
}
userid := c.GetUserId()
rolelist, err := serverbac.GetRoleList(companyid, userid)
rolelist, err := serverbac.GetRoleList(userid, companyid)
msg = protocol.NewReturnResponse(rolelist, err)
return
}
... ...
... ... @@ -182,7 +182,7 @@ func RoleGroupDelete(param protocol.RequestRoleDelete) error {
//GetRoleList 获取角色列表
func GetRoleList(adminid int64, companyId int64) ([]protocol.RoleGroup, error) {
var (
roleGroups []protocol.RoleGroup
roleGroups = make([]protocol.RoleGroup, 0)
err error
groups []protocol.RoleInfo
// companyinfo *models.Company
... ...