mod_pubsub: Fix error type of 'forbidden' (change from 'cancel' to 'auth')
authorMatthew Wild <mwild1@gmail.com>
Tue, 14 Oct 2014 09:58:11 +0000 (10:58 +0100)
committerMatthew Wild <mwild1@gmail.com>
Tue, 14 Oct 2014 09:58:11 +0000 (10:58 +0100)
plugins/mod_pubsub.lua

index 926ed4f2e8ba483fec1c7ed930e64776d4c46671..04f2b61500708425ee7c7a9c4eb633336809aaca 100644 (file)
@@ -39,7 +39,7 @@ local pubsub_errors = {
        ["nodeid-required"] = { "modify", "bad-request", nil, "nodeid-required" };
        ["item-not-found"] = { "cancel", "item-not-found" };
        ["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" };
-       ["forbidden"] = { "cancel", "forbidden" };
+       ["forbidden"] = { "auth", "forbidden" };
 };
 function pubsub_error_reply(stanza, error)
        local e = pubsub_errors[error];