Skip to content

Commit

Permalink
add JSApiAccountInfo for js SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
shay23b committed Jan 3, 2024
1 parent 7448394 commit 4d1b589
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/memphis_handlers_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down Expand Up @@ -145,6 +143,7 @@ func GetAllMemphisAndNatsInternalSubjects() []string {
// Nats subjects
subjects = append(subjects, inboxSubject)
subjects = append(subjects, JSApiStreams)
subjects = append(subjects, JSApiAccountInfo)

return subjects
}
Expand Down

0 comments on commit 4d1b589

Please sign in to comment.