Skip to content

fix(menutenant): 解决租户的菜单授权和角色授权菜单交集问题。#450

Open
luomgf wants to merge 1 commit into
fastapiadmin:devfrom
luomgf:fix/menutenant
Open

fix(menutenant): 解决租户的菜单授权和角色授权菜单交集问题。#450
luomgf wants to merge 1 commit into
fastapiadmin:devfrom
luomgf:fix/menutenant

Conversation

@luomgf

@luomgf luomgf commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

1、取消菜单租户信息

2、菜单集合根据租户、角色、人员类型取交集

有 RBAC 角色菜单:
菜单 = 角色菜单 ∩ 租户菜单

有 RBAC 角色菜单 + owner:
菜单 = 角色菜单 ∩ 租户菜单

没有 RBAC 角色菜单 + sys_user_tenant.role = admin:
菜单 = 租户菜单

没有 RBAC 角色菜单 + sys_user_tenant.role = owner:
菜单 = 空

1、取消菜单租户信息
2、菜单集合根据租户、角色、人员类型取交集
有 RBAC 角色菜单:
  菜单 = 角色菜单 ∩ 租户菜单

有 RBAC 角色菜单 + owner:
  菜单 = 角色菜单 ∩ 租户菜单

没有 RBAC 角色菜单 + sys_user_tenant.role = admin:
  菜单 = 租户菜单

没有 RBAC 角色菜单 + sys_user_tenant.role = owner:
  菜单 = 空
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant