正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论