diff --git a/file/files.go b/file/files.go index 92c91a2..a4bada8 100644 --- a/file/files.go +++ b/file/files.go @@ -846,6 +846,8 @@ func searchInFile(path string, text string) []*Snippet { } func authWorkspace(username, path string) bool { + path = filepath.FromSlash(path) + if strings.HasPrefix(path, util.Go.GetAPIPath()) { return true }