mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-08 06:00:24 +08:00
[系统用户]优化权限设置
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dns
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/dns/clusters"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/dns/domains"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/dns/issues"
|
||||
@@ -12,9 +13,8 @@ import (
|
||||
func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.
|
||||
Helper(new(helpers.UserMustAuth)).
|
||||
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeDNS)).
|
||||
Helper(new(Helper)).
|
||||
Data("teaModule", "dns").
|
||||
Prefix("/dns").
|
||||
Get("", new(IndexAction)).
|
||||
GetPost("/updateClusterPopup", new(UpdateClusterPopupAction)).
|
||||
|
||||
Reference in New Issue
Block a user