Do not send consent notices if "no-consent-required" is set

pull/5906/head
Half-Shot 2019-08-22 14:22:04 +01:00
parent 3320aaab3a
commit 27a686e53b
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ class ConsentServerNotices(object):
try: try:
u = yield self._store.get_user_by_id(user_id) u = yield self._store.get_user_by_id(user_id)
if u["consent_version"] == "no-consent-required":
# user is exempt
return
if u["is_guest"] and not self._send_to_guests: if u["is_guest"] and not self._send_to_guests:
# don't send to guests # don't send to guests
return return