dpi / courier

Courier is a Drupal module providing a framework to send messages to entities.
https://drupal.org/project/courier
GNU General Public License v2.0
8 stars 3 forks source link

Template validation fails when dispatching with cron #38

Closed dpi closed 7 years ago

dpi commented 7 years ago

Summary

Cannot send a courier message with cron because the active user does not have correct permissions for some text filter formats.

Problem

When the user is editing the template he has correct rights to access the filter format for TextFormat form elements (eg: courier_email body). But when courier managers validator recreates the entity with a clone, crons active user (anon), may not have rights to use that filter format.

Resolution:

Do not validate the entity again in courier manager. Rely on the initial validation in UI to be correct.

Related

dpi/rng#92