Commit ca229c3e authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui_test] Reindexation fails if Manager doesn't have access to the document

Ensure permission removal is done after the indexation
parent 3f91377e
foo1 = context.foo_module.newContent(portal_type='Foo')
foo2 = context.foo_module.newContent(portal_type='Foo')
foo1.setTitle('hasAccessUnauthorized')
foo1.setSuccessorValue(foo2)
foo2.activate().manage_permission( 'Access contents information', 'Manager', 0)
activity_tag = 'Foo_createHasUnauthorizedFoo'
with context.foo_module.defaultActivateParameterDict({'tag': activity_tag}, placeless=True):
foo1 = context.foo_module.newContent(portal_type='Foo')
foo2 = context.foo_module.newContent(portal_type='Foo')
foo1.setTitle('hasAccessUnauthorized')
foo1.setSuccessorValue(foo2)
foo2.activate(after_tag=activity_tag).manage_permission('Access contents information', 'Manager', 0)
return 'Done'
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