aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-06-25 18:54:01 +0200
committerKim Alvefur <zash@zash.se>2015-06-25 18:54:01 +0200
commit7b391bc37acca3a5ed62477f18c9e03348a057f5 (patch)
tree49da0f0f354de33557646b8788fbd6e10cee2df8 /plugins/muc/mod_muc.lua
parentccfc7900288dc532248ef19aa5f391c2616e4264 (diff)
parent48c1abdc57ae3ab5dfe5df027d2476445f13da02 (diff)
downloadprosody-7b391bc37acca3a5ed62477f18c9e03348a057f5.tar.gz
prosody-7b391bc37acca3a5ed62477f18c9e03348a057f5.zip
Merge 0.9->0.10
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index c514bafd..69351504 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -60,7 +60,7 @@ function muclib.room_mt:get_affiliation(jid)
return _get_affiliation(self, jid);
end
function muclib.room_mt:set_affiliation(actor, jid, affiliation, callback, reason)
- if is_admin(jid) then return nil, "modify", "not-acceptable"; end
+ if affiliation ~= "owner" and is_admin(jid) then return nil, "modify", "not-acceptable"; end
return _set_affiliation(self, actor, jid, affiliation, callback, reason);
end