changeset 3418:9fe4543b6823 beta

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.
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 28 Feb 2013 16:13:38 +0100
parents fa6ba6727475
children efc00d363d1e
files rhodecode/model/scm.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Wed Feb 27 17:18:43 2013 +0100
+++ b/rhodecode/model/scm.py	Thu Feb 28 16:13:38 2013 +0100
@@ -291,9 +291,7 @@
         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):
         """