The last one

This commit is contained in:
binwiederhier 2023-05-17 11:19:48 -04:00
parent 92c384374a
commit fc1087a42b
3 changed files with 9 additions and 1 deletions

View file

@ -87,7 +87,7 @@ func (s *Server) ensureAdmin(next handleFunc) handleFunc {
func (s *Server) ensureCallsEnabled(next handleFunc) handleFunc {
return func(w http.ResponseWriter, r *http.Request, v *visitor) error {
if s.config.TwilioAccount == "" {
if s.config.TwilioAccount == "" || s.userManager == nil {
return errHTTPNotFound
}
return next(w, r, v)