ソースを参照

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
Дамян Минков 4年前
コミット
a5129ef291
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      resources/prosody-plugins/mod_muc_allowners.lua

+ 2
- 2
resources/prosody-plugins/mod_muc_allowners.lua ファイルの表示

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

読み込み中…
キャンセル
保存