Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
As I discovered recently you have to be careful when using taxonomy_access to remove view permissions from the newsletters. If your mail out isn't completed when you click submit, it is deferred to be completed in later cron-runs. Cron runs with the permissions of the anonymous user, so if you haven't given 'anonymous' access to the newsletters the cron run won't be able to send the email!
In that case, it would be good to have some other method of controling access. None of my newsletters are available to anonymous users as it's a private site.
Comments
Comment #1
michelleYou can do that with taxonomy_access. If you don't give them view access, they can't subscribe to it.
Unfortunately, they can still create a newsletter even if they don't have create access on that term. Is this a bug?
Michelle
Comment #2
ejort commentedAs I discovered recently you have to be careful when using taxonomy_access to remove view permissions from the newsletters. If your mail out isn't completed when you click submit, it is deferred to be completed in later cron-runs. Cron runs with the permissions of the anonymous user, so if you haven't given 'anonymous' access to the newsletters the cron run won't be able to send the email!
Comment #3
michelleIn that case, it would be good to have some other method of controling access. None of my newsletters are available to anonymous users as it's a private site.
Good catch on that!
Michelle
Comment #4
DriesK commentedfixed in version 1.13
Comment #5
(not verified) commented