mercurial/hgweb/common.py
changeset 35038 6ef744a7df65
parent 34721 baee5512f262
child 36296 d18c0cf5f3ab
--- a/mercurial/hgweb/common.py	Thu Oct 19 11:43:19 2017 +0200
+++ b/mercurial/hgweb/common.py	Thu Oct 19 11:46:41 2017 +0200
@@ -75,7 +75,7 @@
     if deny and (not user or ismember(hgweb.repo.ui, user, deny)):
         raise ErrorResponse(HTTP_UNAUTHORIZED, 'push not authorized')
 
-    allow = hgweb.configlist('web', 'allow_push')
+    allow = hgweb.configlist('web', 'allow-push')
     if not (allow and ismember(hgweb.repo.ui, user, allow)):
         raise ErrorResponse(HTTP_UNAUTHORIZED, 'push not authorized')