Commit da98e648 authored by Romain Courteaud's avatar Romain Courteaud

Revert "slapos_crm: XXX XXX XXX try to understand live test issue"

This reverts commit b3bd0d68.
parent c4d44348
from AccessControl import getSecurityManager
from zExceptions import Unauthorized
from pprint import pformat
u = getSecurityManager().getUser()
user_value = u.getUserValue()
from zExceptions import Unauthorized
if REQUEST is not None:
raise Unauthorized
......@@ -67,12 +58,6 @@ if int(outstanding_amount) > 0:
start_date=DateTime(),
resource=portal.portal_preferences.getPreferredRegularisationRequestResource(),
)
if user_value is None:
msg = 'User ID:', u.getId()
else:
msg = 'User ID:', u.getId(), user_value.getPath()
raise NotImplementedError(msg)
ticket.validate(comment='New automatic ticket for %s' % context.getTitle())
ticket.suspend(comment='New automatic ticket for %s' % context.getTitle())
......
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