mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
可以根据管理界面设置/用户界面设置隐藏财务相关功能菜单
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user