summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-05-22 12:01:43 +0100
committerGitHub <noreply@github.com>2018-05-22 12:01:43 +0100
commit3b2def6c7a83584d064d550cf5a1df4320f19922 (patch)
tree7cce87b9e5550e8d041030a518060e0f2f212614 /synapse/handlers/room.py
parentMerge pull request #3236 from matrix-org/rav/consent_notice (diff)
parentReject attempts to send event before privacy consent is given (diff)
downloadsynapse-3b2def6c7a83584d064d550cf5a1df4320f19922.tar.xz
Merge pull request #3257 from matrix-org/rav/fonx_on_no_consent
Reject attempts to send event before privacy consent is given
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 5e9fa95a2d..b5850db42f 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -126,6 +126,10 @@ class RoomCreationHandler(BaseHandler):
             except Exception:
                 raise SynapseError(400, "Invalid user_id: %s" % (i,))
 
+        yield self.event_creation_handler.assert_accepted_privacy_policy(
+            requester,
+        )
+
         invite_3pid_list = config.get("invite_3pid", [])
 
         visibility = config.get("visibility", None)