# HG changeset patch # User Marcin Kuzminski # Date 2012-09-12 10:54:46 # Node ID 0959096b2c0276fc667fb46bca99b6865c04f1ab # Parent 5a19d6f4283e4f3b425c50382adef66d08bf818d Wraps group listing with permissions check so they don't get displayed diff --git a/rhodecode/controllers/admin/repos_groups.py b/rhodecode/controllers/admin/repos_groups.py --- a/rhodecode/controllers/admin/repos_groups.py +++ b/rhodecode/controllers/admin/repos_groups.py @@ -292,9 +292,9 @@ class ReposGroupsController(BaseControll 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')