fix: 用户数据接口权限

This commit is contained in:
TsMask committed 2023-11-02 17:13:05 +08:00
1 parent f8a996526f
commit d46e87f784
2 files changed
+7 -8

No files matched your search

+2 -2
View File
@@ -98,7 +98,7 @@ func Setup(router *gin.Engine) {
controller.NewSysDept.TreeSelect,
)
sysDeptGroup.GET("/roleDeptTreeSelect/:roleId",
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:dept:query"}}),
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:dept:query", "system:user:edit"}}),
controller.NewSysDept.RoleDeptTreeSelect,
)
}
@@ -213,7 +213,7 @@ func Setup(router *gin.Engine) {
controller.NewSysMenu.TreeSelect,
)
sysMenuGroup.GET("/roleMenuTreeSelect/:roleId",
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:menu:list"}}),
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:menu:list", "system:role:query"}}),
controller.NewSysMenu.RoleMenuTreeSelect,
)
}