mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 05:49:23 -05:00
Do not send consent notices if "no-consent-required" is set
This commit is contained in:
parent
3320aaab3a
commit
27a686e53b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user