Enonic version: 6.13.1
OS: macOS Sierra 10.12.6
I have created a Cron Job and want to delete a node. I’ve changed context, but I’m still getting this response:
‘Access denied to [/verify/58679c7f-9134-377d-5b65-181dc5146579] for [DELETE] by user [unknown]’
I’ve tried this, but still get the user unknown message:
contextLib.run({ user: { login: 'su', userStore: 'system' } }, function () { return repo.delete('58679c7f-9134-377d-5b65-181dc5146579'); });