File: 0001-pubsub.patch

package info (click to toggle)
python-aioxmpp 0.13.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 6,244 kB
  • sloc: python: 97,761; xml: 215; makefile: 155; sh: 63
file content (14 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/plugins/mod_pubsub.lua	Tue Apr 04 01:31:51 2017 +0200
+++ b/plugins/mod_pubsub.lua	Tue Apr 04 20:58:01 2017 +0200
@@ -125,7 +125,10 @@
 end);
 
 local admin_aff = module:get_option_string("default_admin_affiliation", "owner");
-local function get_affiliation(jid)
+local function get_affiliation(jid, node, action)
+        if action == "create" then
+                return "owner";
+        end
 	local bare_jid = jid_bare(jid);
 	if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then
 		return admin_aff;