添加租户导出数据权限

This commit is contained in:
lai
2024-06-26 16:14:13 +08:00
parent 7c3cf63b47
commit 64ccb744df

View File

@@ -438,7 +438,7 @@ func Setup(router *gin.Engine) {
controller.NewSysLogOperate.Clean,
)
sysLogOperGroup.POST("/export",
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:log:operate:export"}}),
middleware.PreAuthorize(map[string][]string{"hasPerms": {"system:log:operate:export", "tenant:operate:list"}}),
collectlogs.OperateLog(collectlogs.OptionNew("log.operate.title.sysLogOper", collectlogs.BUSINESS_TYPE_EXPORT)),
controller.NewSysLogOperate.Export,
)