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

This commit is contained in:
GoEdgeLab
2021-01-13 17:50:03 +08:00
parent d64a66c48d
commit 7925b90016
8 changed files with 36 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ func (this *IndexAction) RunPost(params struct {
ProductName string
AdminSystemName string
ShowOpenSourceInfo bool
ShowFinance bool
ShowVersion bool
Version string
@@ -49,6 +50,7 @@ func (this *IndexAction) RunPost(params struct {
config.ProductName = params.ProductName
config.AdminSystemName = params.AdminSystemName
config.ShowOpenSourceInfo = params.ShowOpenSourceInfo
config.ShowFinance = params.ShowFinance
config.ShowVersion = params.ShowVersion
config.Version = params.Version
err = configloaders.UpdateAdminUIConfig(config)

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)