Avatar backends may need to send identifying information, such as an
e-mail address or a hash of an e-mail address, to another service. For
applications complying with the GDPR, this may require gathering consent
from users.
This change introduces a new attribute on the backend,
consent_requirement_id
, which specifies the ID of a consent
requirement that must be granted before the backend can be used to
render an avatar. This is only enforced if the new
AvatarServiceRegistry.ENABLE_CONSENT_CHECKS
is set in siteconfig. Any
backends requiring consent that haven't been granted consent will be
skipped when rendering avatars.
The Gravatar backend has been updated accordingly to enable consent
checks.