mirror of
https://github.com/element-hq/synapse
synced 2024-09-10 20:05:16 +00:00
priority class now dealt with in namespaced rule_id
This commit is contained in:
parent
aaf50bf6f3
commit
a93fa42bce
1 changed files with 0 additions and 4 deletions
|
@ -82,10 +82,6 @@ class PushRuleRestServlet(ClientV1RestServlet):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_DELETE(self, request):
|
def on_DELETE(self, request):
|
||||||
spec = _rule_spec_from_path(request.postpath)
|
spec = _rule_spec_from_path(request.postpath)
|
||||||
try:
|
|
||||||
priority_class = _priority_class_from_spec(spec)
|
|
||||||
except InvalidRuleException as e:
|
|
||||||
raise SynapseError(400, e.message)
|
|
||||||
|
|
||||||
user, _ = yield self.auth.get_user_by_req(request)
|
user, _ = yield self.auth.get_user_by_req(request)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue