core: fix edit_workflow/edit permission

This transition should not be more restrictive that the original
method ie. 'Modify portal content' for "real" documents and public
for temp objects.
8 jobs for feat/bt-script-magic
in 0 seconds, using 0 compute credits, and was queued for 0 seconds