Procházet zdrojové kódy

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
Дамян Минков před 3 roky
rodič
revize
a5129ef291
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      resources/prosody-plugins/mod_muc_allowners.lua

+ 2
- 2
resources/prosody-plugins/mod_muc_allowners.lua Zobrazit soubor

@@ -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

Načítá se…
Zrušit
Uložit