changeset 2831:0959096b2c02 beta

Wraps group listing with permissions check so they don't get displayed
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 12 Sep 2012 12:54:46 +0200
parents 5a19d6f4283e
children b711b3377372
files rhodecode/controllers/admin/repos_groups.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/controllers/admin/repos_groups.py	Sat Sep 08 00:50:42 2012 +0200
+++ b/rhodecode/controllers/admin/repos_groups.py	Wed Sep 12 12:54:46 2012 +0200
@@ -292,9 +292,9 @@
 
         c.repo_cnt = 0
 
-        c.groups = RepoGroup.query().order_by(RepoGroup.group_name)\
+        groups = RepoGroup.query().order_by(RepoGroup.group_name)\
             .filter(RepoGroup.group_parent_id == id).all()
-
+        c.groups = self.scm_model.get_repos_groups(groups)
         return render('admin/repos_groups/repos_groups.html')
 
     @HasPermissionAnyDecorator('hg.admin')