Browse Source

fix: Fixes kick when allowners is enabled.

Broken after ab18fa7 which disallows the kick as the affiliation attribute is missing in kick iq that is sent.
master
Дамян Минков 2 years ago
parent
commit
a5129ef291
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      resources/prosody-plugins/mod_muc_allowners.lua

+ 2
- 2
resources/prosody-plugins/mod_muc_allowners.lua View File

@@ -170,8 +170,8 @@ function filter_admin_set_query(event)
170 170
         return nil;
171 171
     end
172 172
 
173
-    -- any revoking is disabled
174
-    if _aff ~= 'owner' then
173
+    -- any revoking is disabled, everyone should be owners
174
+    if _aff == 'none' or _aff == 'outcast' or _aff == 'member' then
175 175
         origin.send(st.error_reply(stanza, "auth", "forbidden"));
176 176
         return true;
177 177
     end

Loading…
Cancel
Save