aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-08-14 13:39:40 -0400
committerMatthew Wild <mwild1@gmail.com>2011-08-14 13:39:40 -0400
commit92cf5d2089de992cfc7fcf3733862ca51abeb619 (patch)
treebfc27362f745bb0850b87299f7c818f22490f513 /plugins
parentdcba4da36a7bfe0b56b52293ccfc37e098d76746 (diff)
downloadprosody-92cf5d2089de992cfc7fcf3733862ca51abeb619.tar.gz
prosody-92cf5d2089de992cfc7fcf3733862ca51abeb619.zip
mod_pubsub: Add 'publisher' affiliation (can't create/configure nodes, can do everything else)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub.lua22
1 files changed, 22 insertions, 0 deletions
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;