mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
访问鉴权设置帮助中的链接区分管理员和用户
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user