apply permissions on all task types (#4516)

This commit is contained in:
Frédéric Péters 2014-05-12 13:53:48 +02:00
parent e36df33150
commit 2eac1186ba
1 changed files with 1 additions and 2 deletions

View File

@ -370,8 +370,7 @@ def set_owner_role_on_document(context, event):
context.manage_setLocalRoles(creator, ['Owner'])
@grok.subscribe(ITask, IObjectAddedEvent)
@grok.subscribe(IValidation, IObjectAddedEvent)
@grok.subscribe(IBaseTask, IObjectAddedEvent)
def set_permissions_on_task_on_add(context, event):
'''Gives read access to a task for persons that are handling the document'''
# go up in the acquisition chain to find the document