hgext/largefiles/uisetup.py
changeset 36760 7bf80d9d9543
parent 35983 f540b6448738
parent 36754 e3c228b4510d
child 36800 0b18604db95e
--- a/hgext/largefiles/uisetup.py	Sun Mar 04 21:16:36 2018 -0500
+++ b/hgext/largefiles/uisetup.py	Tue Mar 06 14:32:14 2018 -0800
@@ -12,7 +12,6 @@
 from mercurial.i18n import _
 
 from mercurial.hgweb import (
-    hgweb_mod,
     webcommands,
 )
 
@@ -175,9 +174,10 @@
 
     # make putlfile behave the same as push and {get,stat}lfile behave
     # the same as pull w.r.t. permissions checks
-    hgweb_mod.perms['putlfile'] = 'push'
-    hgweb_mod.perms['getlfile'] = 'pull'
-    hgweb_mod.perms['statlfile'] = 'pull'
+    wireproto.permissions['putlfile'] = 'push'
+    wireproto.permissions['getlfile'] = 'pull'
+    wireproto.permissions['statlfile'] = 'pull'
+    wireproto.permissions['lheads'] = 'pull'
 
     extensions.wrapfunction(webcommands, 'decodepath', overrides.decodepath)