Fix auth for repository root

custis
Vitaliy Filippov 2013-08-16 20:18:21 +04:00
parent b3000cf63b
commit 5814634779
1 changed files with 2 additions and 0 deletions

View File

@ -451,5 +451,7 @@ def check_path_access(repos, path_parts, pathtype=None, rev=None):
return 1
if not pathtype:
pathtype = repos.itemtype(path_parts, rev)
if not path_parts:
return auth.check_root_access(repos.rootname())
return auth.check_path_access(repos.rootname(), path_parts, pathtype, rev)