commit | a2c54d2174c17540446e0ced57d9d459af61bc1c | [log] [tgz] |
---|---|---|
author | Chris Broadfoot <cbro@golang.org> | Sat Jan 21 00:08:17 2017 |
committer | Adam Tanner <adam@adamtanner.org> | Sat Jan 21 00:08:17 2017 |
tree | 279d5ae43daba6d1ba7ed0f6bdda57c9817f6bab | |
parent | 85c8b266497ff8e3fac9e2f56912416cf629e242 [diff] |
remote_api: don't check auth for dev_appserver (#43)
diff --git a/remote_api/remote_api.go b/remote_api/remote_api.go index 68cd7d9..3d2880d 100644 --- a/remote_api/remote_api.go +++ b/remote_api/remote_api.go
@@ -39,7 +39,7 @@ ) } - if u == nil || !u.Admin { + if !appengine.IsDevAppServer() && (u == nil || !u.Admin) { w.Header().Set("Content-Type", "text/plain; charset=utf-8") w.WriteHeader(http.StatusUnauthorized) io.WriteString(w, "You must be logged in as an administrator to access this.\n")