From f110472204c9d74a98e9ee8cb2ee35898fbe3dcb Mon Sep 17 00:00:00 2001 From: Hunter Kehoe Date: Wed, 14 May 2025 11:20:30 -0600 Subject: [PATCH] fix typo --- server/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/server.go b/server/server.go index ee2da76a..e66b9939 100644 --- a/server/server.go +++ b/server/server.go @@ -1885,14 +1885,14 @@ func (s *Server) transformMatrixJSON(next handleFunc) handleFunc { } func (s *Server) authorizeTopicWrite(next handleFunc) handleFunc { - return s.autorizeTopic(next, user.PermissionWrite) + return s.authorizeTopic(next, user.PermissionWrite) } func (s *Server) authorizeTopicRead(next handleFunc) handleFunc { - return s.autorizeTopic(next, user.PermissionRead) + return s.authorizeTopic(next, user.PermissionRead) } -func (s *Server) autorizeTopic(next handleFunc, perm user.Permission) handleFunc { +func (s *Server) authorizeTopic(next handleFunc, perm user.Permission) handleFunc { return func(w http.ResponseWriter, r *http.Request, v *visitor) error { if s.userManager == nil { return next(w, r, v)