可以根据管理界面设置/用户界面设置隐藏财务相关功能菜单

This commit is contained in:
刘祥超
2021-01-13 17:50:03 +08:00
parent dffc806fcc
commit 02fbc0de94
8 changed files with 36 additions and 3 deletions

View File

@@ -31,6 +31,7 @@ func (this *IndexAction) RunPost(params struct {
ShowOpenSourceInfo bool
ShowVersion bool
Version string
ShowFinance bool
Must *actions.Must
CSRF *actionutils.CSRF
@@ -51,6 +52,7 @@ func (this *IndexAction) RunPost(params struct {
config.ShowOpenSourceInfo = params.ShowOpenSourceInfo
config.ShowVersion = params.ShowVersion
config.Version = params.Version
config.ShowFinance = params.ShowFinance
err = configloaders.UpdateUserUIConfig(config)
if err != nil {
this.ErrorPage(err)