Commit d71749b1 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: XXX XXX XXX try to understand live test issue

parent 5f9013c8
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
......@@ -58,6 +67,12 @@ 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