mod_pubsub: Make the pubsub host an admin too

Tue, 21 Dec 2010 03:29:29 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 21 Dec 2010 03:29:29 +0000
changeset 3912
dfc9789f9016
parent 3911
a99a2bb7a6ec
child 3913
e748d29b18d6

mod_pubsub: Make the pubsub host an admin too

plugins/mod_pubsub.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_pubsub.lua	Tue Dec 21 03:27:22 2010 +0000
+++ b/plugins/mod_pubsub.lua	Tue Dec 21 03:29:29 2010 +0000
@@ -203,7 +203,7 @@
 
 local admin_aff = module:get_option_string("default_admin_affiliation", "owner");
 local function get_affiliation(jid)
-	if usermanager.is_admin(jid, module.host) then
+	if jid == module.host or usermanager.is_admin(jid, module.host) then
 		return admin_aff;
 	end
 end

mercurial