Skip to content

Commit

Permalink
Merge pull request #1606 from memphisdev/bugfix-RND-412-permissions-v…
Browse files Browse the repository at this point in the history
…iolation-for-subscription-to-memphis-schema-updates-on-authorized-pattern-when-creating-default-station

add JSApiAccountInfo for js SDK
  • Loading branch information
shay23b committed Jan 3, 2024
2 parents 16dc396 + 4d1b589 commit 455dc83
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 455dc83

Please sign in to comment.