How to properly set permission for assignee in workflow
I need set permission to read (consumer) for assignee user in workflow for all items in current taks. So, when user get task in workflow with item on which he hasn't have permission before, he will get permission to read for all package items. Simply speaking, he have to know what is he accepting...
I'm wondering what is best approach.
I can create Task listener on create event and set permission there. But then I need set this listener to every task in all workflows (that's a lot of places...).
I think i can create some behavior to manage this, but don't know on what event and class to run it. And I'm scared of dependency to performance.
I can override PermissionServiceImpl but that is terrible idea from my point of view. I don't wanna override Alfresco core.