From 5814634779d1f04f02ce4daeab96431f49068001 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Fri, 16 Aug 2013 20:18:21 +0400 Subject: [PATCH] Fix auth for repository root --- lib/vclib/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vclib/__init__.py b/lib/vclib/__init__.py index ffad38e9..70959a6c 100644 --- a/lib/vclib/__init__.py +++ b/lib/vclib/__init__.py @@ -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)