Commit 9ddc1eb6 authored by Jérome Perrin's avatar Jérome Perrin

add again the "# Change user if required (TO BE DONE)" comment.

I removed it because I misunderstood it.
We should compare current user and only change if it's different from this message user (if it's faster)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b6e30aa3
......@@ -187,6 +187,7 @@ class Message:
try:
obj = self.getObject(activity_tool)
old_security_manager = getSecurityManager()
# Change user if required (TO BE DONE)
# We will change the user only in order to execute this method
user = self.changeUser(self.user_name, activity_tool)
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment