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.
This commit is contained in:
parent
bc6e49754c
commit
a5129ef291
|
@ -170,8 +170,8 @@ function filter_admin_set_query(event)
|
||||||
return nil;
|
return nil;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- any revoking is disabled
|
-- any revoking is disabled, everyone should be owners
|
||||||
if _aff ~= 'owner' then
|
if _aff == 'none' or _aff == 'outcast' or _aff == 'member' then
|
||||||
origin.send(st.error_reply(stanza, "auth", "forbidden"));
|
origin.send(st.error_reply(stanza, "auth", "forbidden"));
|
||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue