作者 唐旭辉

Merge branch 'dev' into test

@@ -114,7 +114,7 @@ func GetUserPermission(userCompanyid int64, code ...string) (map[string]Permissi @@ -114,7 +114,7 @@ func GetUserPermission(userCompanyid int64, code ...string) (map[string]Permissi
114 FROM role_menu AS a 114 FROM role_menu AS a
115 JOIN user_role AS b ON a.role_id = b.role_id 115 JOIN user_role AS b ON a.role_id = b.role_id
116 JOIN role AS c ON a.role_id = c.id 116 JOIN role AS c ON a.role_id = c.id
117 - WHERE b.user_company_id=? AND c.delete_at =0 ` 117 + WHERE b.user_company_id=? AND c.delete_at =0 And b.enable_status=1 `
118 if len(code) > 0 { 118 if len(code) > 0 {
119 datasql = datasql + fmt.Sprintf(` and a.code = "%s" `, code[0]) 119 datasql = datasql + fmt.Sprintf(` and a.code = "%s" `, code[0])
120 } 120 }