From 8985dc5b7e6882ea33f8acd5b03be669d25b8a5c Mon Sep 17 00:00:00 2001 From: daniel-davidd Date: Wed, 17 Jan 2024 13:32:21 +0200 Subject: [PATCH] fixed rbac bug --- server/memphis_handlers_rbac.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/memphis_handlers_rbac.go b/server/memphis_handlers_rbac.go index cb9317432..98795beb2 100644 --- a/server/memphis_handlers_rbac.go +++ b/server/memphis_handlers_rbac.go @@ -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 {