[系统用户]优化权限设置

This commit is contained in:
刘祥超
2020-12-03 11:03:12 +08:00
parent 00a54a9c65
commit 94ca1f1fe1
82 changed files with 193 additions and 105 deletions

View File

@@ -1,6 +1,7 @@
package https
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/servers/serverutils"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
@@ -9,7 +10,7 @@ import (
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(helpers.NewUserMustAuth()).
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeServer)).
Helper(serverutils.NewServerHelper()).
Prefix("/servers/server/settings/https").
GetPost("", new(IndexAction)).