summary refs log tree commit diff
path: root/synapse/rest/client/v1/push_rule.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-14 10:53:44 +0000
committerDavid Baker <dave@matrix.org>2016-01-14 10:53:44 +0000
commita7927c13fd2181df75f1a3f3cf47889b0a240449 (patch)
tree1e27fadd8fcc5ea107ffd13c22c50f67f2ea248d /synapse/rest/client/v1/push_rule.py
parentUse logger not logging (diff)
downloadsynapse-a7927c13fd2181df75f1a3f3cf47889b0a240449.tar.xz
Fix enabling & disabling push rules
Diffstat (limited to 'synapse/rest/client/v1/push_rule.py')
-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: