权限管理优化

This commit is contained in:
hoteas
2022-08-01 16:45:24 +08:00
parent 3da135e3cb
commit ffa32105f2
3 changed files with 14 additions and 10 deletions
+4
View File
@@ -185,6 +185,10 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) {
{"type": "search", "name": "sort", "label": "排序", "value": nil},
},
}
if v.GetString("name") == "logs" {
that.TableConfig.GetMap(v.GetString("name"))["auth"] = []string{"show", "download"}
}
}
//初始化