Skip to content
Snippets Groups Projects
Commit 27a686e5 authored by Half-Shot's avatar Half-Shot
Browse files

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

parent 3320aaab
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,10 @@ class ConsentServerNotices(object):
try:
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:
# don't send to guests
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment