diff --git a/cmd/server/container/container.go b/cmd/server/container/container.go index 8f9e4bc00..9a28a6cb4 100644 --- a/cmd/server/container/container.go +++ b/cmd/server/container/container.go @@ -85,7 +85,6 @@ func BuildContainer(opt fx.Option) (app *fx.App) { mqtt_authenticator.NewAuthenticator, mqtt.NewMqtt, access_list.NewAccessListService, - rbac.NewGrpcAccessFilter, rbac.NewEchoAccessFilter, NewZigbee2mqttConfig, zigbee2mqtt.NewZigbee2mqtt, diff --git a/system/rbac/echo.go b/system/rbac/echo.go index d8be0f1b6..4993dbd68 100644 --- a/system/rbac/echo.go +++ b/system/rbac/echo.go @@ -25,6 +25,7 @@ import ( "github.com/e154/smart-home/api/controllers" "github.com/e154/smart-home/common" "github.com/e154/smart-home/common/apperr" + "github.com/e154/smart-home/common/logger" m "github.com/e154/smart-home/models" "github.com/e154/smart-home/system/access_list" "github.com/e154/smart-home/system/jwt_manager" @@ -34,6 +35,10 @@ import ( "strings" ) +var ( + log = logger.MustGetLogger("rbac") +) + // EchoAccessFilter ... type EchoAccessFilter struct { adaptors *adaptors.Adaptors