# HG changeset patch # User Marcin Kuzminski # Date 1362583228 -3600 # Node ID b39cb4d4e0bead38738dca04ae80afac45086018 # Parent 2053053e088272dbfca53eaad79df13ff4b0a263 it's safer to user user_id for IMC diff -r 2053053e0882 -r b39cb4d4e0be rhodecode/controllers/files.py --- 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,