Mercurial > public > src > rhodecode
diff pylons_app/controllers/admin/settings.py @ 486:a0a93357f954
started my page rewrite
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 03 Sep 2010 00:46:07 +0200 |
parents | 3ed2d46a2ca7 |
children | a977818fbc6d 3fc3ce53659b |
line wrap: on
line diff
--- a/pylons_app/controllers/admin/settings.py Thu Sep 02 21:37:52 2010 +0200 +++ b/pylons_app/controllers/admin/settings.py Fri Sep 03 00:46:07 2010 +0200 @@ -225,6 +225,11 @@ """ # url('admin_settings_my_account') c.user = self.sa.query(User).get(c.hg_app_user.user_id) + c.user_repos = [] + for repo in c.cached_repo_list.values(): + if repo.dbrepo.user.username == c.user.username: + c.user_repos.append(repo) + if c.user.username == 'default': h.flash(_("You can't edit this user since it's" " crucial for entire application"), category='warning')