Commit 63654541 authored by Jérome Perrin's avatar Jérome Perrin

setting a security manager with a non wrapped owner will fail when trying to

create objects. It works with PAS users though.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13807 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea56ba91
......@@ -131,7 +131,7 @@ class AlarmTool(BaseTool):
current_date = DateTime()
for alarm in self.getAlarmList(to_active=1):
if alarm is not None:
user = alarm.getOwner()
user = alarm.getWrappedOwner()
newSecurityManager(self.REQUEST, user)
if alarm.isActive() or not alarm.isEnabled():
# do nothing if already active, or not enabled
......
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