Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/tailsql/tailsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@ func (s *Server) checkAuth(w http.ResponseWriter, r *http.Request, src, query st
caller = whois.UserProfile.LoginName
}

// If the caller wants the UI and didn't send a query, allow it.
// If the caller wants the UI or metadata, and didn't send a query, allow it.
// The source does not matter when there is no query.
if r.URL.Path == "/" && query == "" {
if (r.URL.Path == "/" || r.URL.Path == "/meta") && query == "" {
return caller, true
}
if err := s.authorize(src, whois); err != nil {
Expand Down