Skip to content

Commit

Permalink
grpc code fragments removed
Browse files Browse the repository at this point in the history
  • Loading branch information
e154 committed Oct 18, 2023
1 parent 0e444ae commit d022129
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/server/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions system/rbac/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -34,6 +35,10 @@ import (
"strings"
)

var (
log = logger.MustGetLogger("rbac")
)

// EchoAccessFilter ...
type EchoAccessFilter struct {
adaptors *adaptors.Adaptors
Expand Down

0 comments on commit d022129

Please sign in to comment.