Access denied for Cron event

Created on 23 October 2024, about 2 months ago

Problem/Motivation

I just tried ECA to set up a cron event to update a specific node content. However, access was denied even if I switched to user 1, according to the ECA log messages. On the other hand, I can load the node and update its content if the "Update content entity" event is used.

Steps to reproduce

1. Install ECA.
2. Create an ECA Model.
3. Add a "ECA Cron Event" event with * * * * * Frequency.
4. Add a "User: Switch current account" activity.
5. Add a "Entity: load" activity.
6. Add a "Entity: Set field value" activity.
7. Save the model.
8. Run "ECA Base" cron job.
9. Check the ECA log at admin/config/workflow/eca/log.
10. Access denied message was produced at "Entity: Set field value" Activity even user account is UID 1 (Administrator).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇭🇰Hong Kong richard cheung

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024