summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-07-06 13:09:16 +0100
committerErik Johnston <erik@matrix.org>2015-07-06 13:25:35 +0100
commit1a3255b507550c76f11251c890a43947b1f4e272 (patch)
treeea656a0697b96a8fde6a0fe91a559d2f2d002aef /synapse
parentRename key and values for m.room.history_visibility. Support 'invited' value (diff)
downloadsynapse-1a3255b507550c76f11251c890a43947b1f4e272.tar.xz
Add m.room.history_visibility to newly created rooms' m.room.power_levels
Diffstat (limited to 'synapse')
-rw-r--r--synapse/api/auth.py1
-rw-r--r--synapse/handlers/room.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index deca747f72..1a25bf1086 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -575,6 +575,7 @@ class Auth(object):
         levels_to_check = [
             ("users_default", []),
             ("events_default", []),
+            ("state_default", []),
             ("ban", []),
             ("redact", []),
             ("kick", []),
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 4bd027d9bb..891707df44 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -213,6 +213,7 @@ class RoomCreationHandler(BaseHandler):
                 "events": {
                     EventTypes.Name: 100,
                     EventTypes.PowerLevels: 100,
+                    EventTypes.RoomHistoryVisibility: 100,
                 },
                 "events_default": 0,
                 "state_default": 50,