summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dbkr@users.noreply.github.com>2016-01-14 13:34:05 +0000
committerDavid Baker <dbkr@users.noreply.github.com>2016-01-14 13:34:05 +0000
commit8db451f6528629234c7941e5e9ab3b781559db96 (patch)
treec0c58d7497afa190aa7499344a4cf145dd08f202
parentMerge branch 'release-v0.12.1' into develop (diff)
parentFix enabling & disabling push rules (diff)
downloadsynapse-8db451f6528629234c7941e5e9ab3b781559db96.tar.xz
Merge pull request #498 from matrix-org/push_rule_enabled_fix
Fix enabling & disabling push rules
-rw-r--r--synapse/rest/client/v1/push_rule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py
index df53824d2d..0cbd9fe08a 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -51,7 +51,7 @@ class PushRuleRestServlet(ClientV1RestServlet):
         content = _parse_json(request)
 
         if 'attr' in spec:
-            self.set_rule_attr(requester.user, spec, content)
+            self.set_rule_attr(requester.user.to_string(), spec, content)
             defer.returnValue((200, {}))
 
         try: