Skip to content

Commit

Permalink
Merge pull request #1641 from memphisdev/bugfix-RND-463-rbac-full-sta…
Browse files Browse the repository at this point in the history
…tion-name-bug

bugfix-RND-463-rbac-full-station-name-bug
  • Loading branch information
daniel-davidd authored Jan 17, 2024
2 parents 686296d + 8985dc5 commit 53f0515
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/memphis_handlers_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ func GetUserAllowedStations(userRoles []int, tenantName string) ([]models.Statio
}

func GetPatternWithDots(pattern string) string {
return strings.Replace(pattern, ".", "\\.\\\\", -1)
if strings.Contains(pattern, "*") {
return strings.Replace(pattern, ".", "\\.\\\\", -1)
} else {
return pattern
}
}

func GetAllInternalSbjectsForWriteRespones(station models.Station) []string {
Expand Down

0 comments on commit 53f0515

Please sign in to comment.