@@ -236,7 +236,7 @@ func parseRelativePathPerm(basePath string, relativePathPattern string, method s
re := regexp.MustCompile(`\$\{(.+)\}\$`)
matches := re.FindStringSubmatch(relativePathPattern)
- if len(matches) == 1 {
+ if len(matches) == 0 {
return relativePathPattern, nil, nil
}