From ff222c379de2317b3c61ff231de66e0a8514e2f7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 8 Aug 2018 20:48:02 +0100 Subject: mod_pubsub, mod_pep, util.pubsub: Move capability definitions into util.pubsub to avoid duplication --- plugins/mod_pep.lua | 78 ----------------------------------------------------- 1 file changed, 78 deletions(-) (limited to 'plugins/mod_pep.lua') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 47c73e1e..e43b67b1 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -149,84 +149,6 @@ function get_pep_service(username) return service; end service = pubsub.new({ - capabilities = { - restricted = { - be_subscribed = false; - be_unsubscribed = true; - }; - none = { - create = false; - publish = false; - retract = false; - 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; - }; - publisher = { - create = false; - publish = true; - retract = true; - get_nodes = true; - get_configuration = 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; - retract = true; - delete = true; - get_nodes = true; - configure = true; - get_configuration = true; - - subscribe = true; - unsubscribe = true; - get_subscription = true; - get_subscriptions = true; - get_items = true; - - - subscribe_other = true; - unsubscribe_other = true; - get_subscription_other = true; - get_subscriptions_other = true; - - be_subscribed = true; - be_unsubscribed = true; - - set_affiliation = true; - }; - }; - node_defaults = { ["max_items"] = 1; ["persist_items"] = true; -- cgit v1.2.3