When access control of some sort (field permissions for instance) and messages are sent via cron (or queue workers, etc), certain fields can be hidden from recipients since cron is run as anonymous (Drush 9 removes the --user option).
In the base notifier plugin, prior to rendering the message, it would be good to switch to the recipient account. This is non-trivial as it will involve an API change to the constructor to properly inject the AccountSwitcher service.
When access control of some sort (field permissions for instance) and messages are sent via cron (or queue workers, etc), certain fields can be hidden from recipients since cron is run as anonymous (Drush 9 removes the
--user
option).In the base notifier plugin, prior to rendering the message, it would be good to switch to the recipient account. This is non-trivial as it will involve an API change to the constructor to properly inject the
AccountSwitcher
service.