# HG changeset patch # User Marcin Kuzminski # Date 2010-09-28 20:14:16 # Node ID 0fce1f9e4dcef14e4e376244e4128e81878de731 # Parent 9bedaa073c23d664edd8bccabbbdaed495857b4c removed .lower() from permission checking of cached repos list since repos can have capital letters now diff --git a/pylons_app/model/hg_model.py b/pylons_app/model/hg_model.py --- a/pylons_app/model/hg_model.py +++ b/pylons_app/model/hg_model.py @@ -61,10 +61,10 @@ def _get_repos_switcher_cached(cached_re repos_lst = [] for repo in [x for x in cached_repo_list.values()]: if HasRepoPermissionAny('repository.write', 'repository.read', - 'repository.admin')(repo.name.lower(), 'main page check'): + 'repository.admin')(repo.name, 'main page check'): repos_lst.append((repo.name, repo.dbrepo.private,)) - return sorted(repos_lst, key=lambda k:k[0]) + return sorted(repos_lst, key=lambda k:k[0].lower()) @cache_region('long_term', 'full_changelog') def _full_changelog_cached(repo_name):