Changeset - 9fe4543b6823
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-02-28 16:13:38
marcin@python-works.com
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.
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/scm.py
Show inline comments
 
@@ -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):
 
        """
0 comments (0 inline, 0 general)