访问鉴权设置帮助中的链接区分管理员和用户

This commit is contained in:
GoEdgeLab
2023-07-16 15:12:55 +08:00
parent 829e6ecde9
commit 8dd804c13a
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package access
import (
"encoding/json"
teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeCommon/pkg/langs/codes"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/dao"
@@ -33,7 +34,7 @@ func (this *IndexAction) RunGet(params struct {
// 移除不存在的鉴权方法
var allTypes = []string{}
for _, def := range serverconfigs.FindAllHTTPAuthTypes() {
for _, def := range serverconfigs.FindAllHTTPAuthTypes(teaconst.Role) {
allTypes = append(allTypes, def.Code)
}

View File

@@ -2,6 +2,7 @@ package access
import (
"encoding/json"
teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeCommon/pkg/langs/codes"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/dao"
@@ -33,7 +34,7 @@ func (this *IndexAction) RunGet(params struct {
// 移除不存在的鉴权方法
var allTypes = []string{}
for _, def := range serverconfigs.FindAllHTTPAuthTypes() {
for _, def := range serverconfigs.FindAllHTTPAuthTypes(teaconst.Role) {
allTypes = append(allTypes, def.Code)
}