##// END OF EJS Templates
removed .lower() from permission checking of cached repos list since repos can have capital letters now
marcink -
r511:0fce1f9e default
parent child Browse files
Show More
@@ -61,10 +61,10 b' def _get_repos_switcher_cached(cached_re'
61 repos_lst = []
61 repos_lst = []
62 for repo in [x for x in cached_repo_list.values()]:
62 for repo in [x for x in cached_repo_list.values()]:
63 if HasRepoPermissionAny('repository.write', 'repository.read',
63 if HasRepoPermissionAny('repository.write', 'repository.read',
64 'repository.admin')(repo.name.lower(), 'main page check'):
64 'repository.admin')(repo.name, 'main page check'):
65 repos_lst.append((repo.name, repo.dbrepo.private,))
65 repos_lst.append((repo.name, repo.dbrepo.private,))
66
66
67 return sorted(repos_lst, key=lambda k:k[0])
67 return sorted(repos_lst, key=lambda k:k[0].lower())
68
68
69 @cache_region('long_term', 'full_changelog')
69 @cache_region('long_term', 'full_changelog')
70 def _full_changelog_cached(repo_name):
70 def _full_changelog_cached(repo_name):
General Comments 0
You need to be logged in to leave comments. Login now