From 4d1b589ffd67849ac3ae341314d3f41e29507a7d Mon Sep 17 00:00:00 2001 From: shay23b Date: Wed, 3 Jan 2024 11:38:42 +0200 Subject: [PATCH] add JSApiAccountInfo for js SDK --- server/memphis_handlers_rbac.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/memphis_handlers_rbac.go b/server/memphis_handlers_rbac.go index ab8fc5ca3..37587410c 100644 --- a/server/memphis_handlers_rbac.go +++ b/server/memphis_handlers_rbac.go @@ -55,11 +55,9 @@ func GetUserAllowedStations(userRoles []int, tenantName string) ([]models.Statio for _, permission := range permissions { if permission.RestrictionType == "allow" { if permission.Type == "read" { - // permissionsAllowReadPattern = append(permissionsAllowReadPattern, GetPatternWithDots(permission.Pattern)) permissionsAllowReadPattern = append(permissionsAllowReadPattern, permission.Pattern) } else if permission.Type == "write" { - // permissionsAllowWritePattern = append(permissionsAllowWritePattern, GetPatternWithDots(permission.Pattern)) permissionsAllowWritePattern = append(permissionsAllowWritePattern, permission.Pattern) } } @@ -145,6 +143,7 @@ func GetAllMemphisAndNatsInternalSubjects() []string { // Nats subjects subjects = append(subjects, inboxSubject) subjects = append(subjects, JSApiStreams) + subjects = append(subjects, JSApiAccountInfo) return subjects }