Changeset - d92fc9b5e6f9
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2010-11-26 03:20:13
marcin@python-works.com
bugfix, when user had no repos he would see all repos in my account
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/admin/settings.py
Show inline comments
 
@@ -245,12 +245,13 @@ class SettingsController(BaseController)
 
        # url('admin_settings_my_account')
 
        c.user = UserModel().get(c.rhodecode_user.user_id, cache=False)
 
        all_repos = self.sa.query(Repository)\
 
            .filter(Repository.user_id == c.user.user_id)\
 
            .order_by(func.lower(Repository.repo_name))\
 
            .all()
 

	
 
        c.user_repos = ScmModel().get_repos(all_repos)
 

	
 
        if c.user.username == 'default':
 
            h.flash(_("You can't edit this user since it's"
 
              " crucial for entire application"), category='warning')
 
            return redirect(url('users'))
0 comments (0 inline, 0 general)