From 95547f989296028151b238418833ed30103b63a8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 14 Aug 2011 13:39:40 -0400 Subject: mod_pubsub: Add 'publisher' affiliation (can't create/configure nodes, can do everything else) --- plugins/mod_pubsub.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'plugins/mod_pubsub.lua') diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index 7dac3b29..dd787d32 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -346,6 +346,28 @@ set_service(pubsub.new({ set_affiliation = false; }; + publisher = { + create = false; + publish = true; + retract = true; + get_nodes = true; + + subscribe = true; + unsubscribe = true; + get_subscription = true; + get_subscriptions = true; + get_items = true; + + subscribe_other = false; + unsubscribe_other = false; + get_subscription_other = false; + get_subscriptions_other = false; + + be_subscribed = true; + be_unsubscribed = true; + + set_affiliation = false; + }; owner = { create = true; publish = true; -- cgit v1.2.3