add Contributor role to document after validation creation (closes #3323)

This commit is contained in:
Vincent Fretin 2013-07-20 13:07:06 +02:00
parent 3e0f2b4c6e
commit 621fd6ea58
1 changed files with 3 additions and 2 deletions

View File

@ -75,10 +75,11 @@ def set_reviewer_on_target(context, event):
grant_local_role_to_responsible(context, 'Reviewer', target)
@grok.subscribe(IValidation, IObjectAddedEvent)
@grok.subscribe(IOpinion, IObjectAddedEvent)
def set_contributor_on_document(context, event):
"""Set Contributor role on document to responsible after opinion creation
(Contributor can create a new version)
"""Set Contributor role on document to responsible after opinion and
validation creation. (Contributor can create a new version)
"""
document = context.getParentNode()
grant_local_role_to_responsible(context, 'Contributor', document)