diff options
author | David Baker <dbkr@users.noreply.github.com> | 2016-01-14 13:34:05 +0000 |
---|---|---|
committer | David Baker <dbkr@users.noreply.github.com> | 2016-01-14 13:34:05 +0000 |
commit | 8db451f6528629234c7941e5e9ab3b781559db96 (patch) | |
tree | c0c58d7497afa190aa7499344a4cf145dd08f202 /synapse/rest/client/v1 | |
parent | Merge branch 'release-v0.12.1' into develop (diff) | |
parent | Fix enabling & disabling push rules (diff) | |
download | synapse-8db451f6528629234c7941e5e9ab3b781559db96.tar.xz |
Merge pull request #498 from matrix-org/push_rule_enabled_fix
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: |