diff rhodecode/controllers/files.py @ 3487:b39cb4d4e0be beta

it's safer to user user_id for IMC
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 06 Mar 2013 16:20:28 +0100
parents 4725d097c3c0
children 1b4fc33931d7
line wrap: on
line diff
--- a/rhodecode/controllers/files.py	Tue Mar 05 11:55:01 2013 +0100
+++ b/rhodecode/controllers/files.py	Wed Mar 06 16:20:28 2013 +0100
@@ -315,7 +315,7 @@
             try:
                 self.scm_model.commit_change(repo=c.rhodecode_repo,
                                              repo_name=repo_name, cs=c.cs,
-                                             user=self.rhodecode_user,
+                                             user=self.rhodecode_user.user_id,
                                              author=author, message=message,
                                              content=content, f_path=f_path)
                 h.flash(_('Successfully committed to %s') % f_path,
@@ -378,7 +378,7 @@
             try:
                 self.scm_model.create_node(repo=c.rhodecode_repo,
                                            repo_name=repo_name, cs=c.cs,
-                                           user=self.rhodecode_user,
+                                           user=self.rhodecode_user.user_id,
                                            author=author, message=message,
                                            content=content, f_path=node_path)
                 h.flash(_('Successfully committed to %s') % node_path,