Skip to content

Commit

Permalink
fixed rbac bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-davidd committed Jan 17, 2024
1 parent 686296d commit 8985dc5
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 8985dc5

Please sign in to comment.