From 492e74e1e8aacf932e0fb6bdfd78ef213e4aca36 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 14 Jun 2015 13:23:46 +0800 Subject: [PATCH] . --- file/files.go | 2 ++ 1 file changed, 2 insertions(+) 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 }