优化系统用户登录校验

This commit is contained in:
GoEdgeLab
2020-12-07 11:45:45 +08:00
parent 000b5c79e3
commit 8f1e5e4fc0
11 changed files with 74 additions and 48 deletions

View File

@@ -3,8 +3,9 @@ package configloaders
import "github.com/TeaOSLab/EdgeCommon/pkg/systemconfigs"
type AdminModuleList struct {
IsSuper bool
Modules []*systemconfigs.AdminModule
IsSuper bool
Modules []*systemconfigs.AdminModule
Fullname string
}
func (this *AdminModuleList) Allow(module string) bool {