Fix file permission of Go API

This commit is contained in:
Liang Ding 2015-06-04 14:32:16 +08:00
parent e8c27e762f
commit fed20889f0
1 changed files with 4 additions and 0 deletions

View File

@ -846,6 +846,10 @@ func searchInFile(path string, text string) []*Snippet {
}
func authWorkspace(username, path string) bool {
if strings.HasPrefix(path, util.Go.GetAPIPath()) {
return true
}
userWorkspace := conf.GetUserWorkspace(username)
workspaces := filepath.SplitList(userWorkspace)