# HG changeset patch # User Marcin Kuzminski # Date 1347447286 -7200 # Node ID 0959096b2c0276fc667fb46bca99b6865c04f1ab # Parent 5a19d6f4283e4f3b425c50382adef66d08bf818d Wraps group listing with permissions check so they don't get displayed diff -r 5a19d6f4283e -r 0959096b2c02 rhodecode/controllers/admin/repos_groups.py --- 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')