diff options
author | David Baker <dave@matrix.org> | 2016-01-14 10:53:44 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-14 10:53:44 +0000 |
commit | a7927c13fd2181df75f1a3f3cf47889b0a240449 (patch) | |
tree | 1e27fadd8fcc5ea107ffd13c22c50f67f2ea248d /synapse/rest/client/v1 | |
parent | Use logger not logging (diff) | |
download | synapse-a7927c13fd2181df75f1a3f3cf47889b0a240449.tar.xz |
Fix enabling & disabling push rules
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 2 |
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: |