我看下菜单配置那边,是显示 ”菜单无对应权限“
你好,测试的菜单是有配置权限的,你这边查询一下数据库看下权限是否初始化进去了。
SELECT * FROM iam_menu_permission WHERE PERMISSION_CODE = 'test-manager-service.test-cycle.getTestCycle';
SELECT
imb.id,
imb.CODE,
CASE
WHEN imt.NAME IS NULL THEN
imb.NAME ELSE imt.NAME
END AS NAME,
imb.resource_level,
imb.parent_code,
imb.type,
imb.sort,
imb.is_default,
imb.icon,
imb.category,
imb.page_permission_code,
imb.object_version_number,
ip2.path AS route,
ip2.permission_type AS page_permission_type
FROM
iam_menu_b imb
INNER JOIN iam_menu_permission imp ON imb.CODE = imp.menu_code
INNER JOIN (
SELECT DISTINCT
t2.CODE
FROM
(
SELECT
ip.*
FROM
iam_permission ip
INNER JOIN iam_role_permission irp ON ip.id = irp.permission_id
INNER JOIN (
SELECT DISTINCT
imr.role_id
FROM
iam_member_role imr
INNER JOIN iam_role ir ON imr.role_id = ir.id
AND ir.is_enabled = 1
WHERE
imr.member_id = ?
AND imr.source_type = 'project'
AND imr.source_id = ?
AND imr.member_type = 'user'
) t1 ON t1.role_id = irp.role_id UNION
SELECT
ip1.*
FROM
iam_permission ip1
WHERE
ip1.is_login_access = 1
OR ip1.is_public_access = 1
) t2
) t3 ON imp.permission_code = t3.
CODE LEFT JOIN iam_menu_tl imt ON imb.id = imt.id
AND imt.lang = 'zh_CN'
LEFT JOIN iam_permission ip2 ON imb.page_permission_code = ip2.CODE
WHERE
1 = 1
AND imb.resource_level = 'project'
AND ( imb.category NOT LIKE 'PROGRAM' OR imb.category IS NULL )
查一下菜单,member_id为项目所有者用户的id,source_id为项目id
?怎么弄?没明白。。谢谢
你执行下上面发的那个sql,source_id就是这个http请求里面的source_id。
member_id,在iam_user表里根据登录名查下用户id
执行完了,也没有看到 “测试管理” 相关的关键字
嗯,没有测试管理
没有对应的test 字段
f5刷新下页面看能不能点了
这个是角色管理->项目所有者->点击菜单详情界面?
是的