# HG changeset patch # User Marcin Kuzminski # Date 2013-02-28 15:13:38 # Node ID 9fe4543b6823ef429c731a5960794d72749249d9 # Parent fa6ba6727475a63abc747a14120de691d6832475 iterate over repos groups for bool() calls to actually work on it. fixes some issues with correctly displaying if there are no groups you have permission to. diff --git a/rhodecode/model/scm.py b/rhodecode/model/scm.py --- a/rhodecode/model/scm.py +++ b/rhodecode/model/scm.py @@ -291,9 +291,7 @@ class ScmModel(BaseModel): if all_groups is None: all_groups = RepoGroup.query()\ .filter(RepoGroup.group_parent_id == None).all() - group_iter = GroupList(all_groups) - - return group_iter + return [x for x in GroupList(all_groups)] def mark_for_invalidation(self, repo_name): """