# HG changeset patch # User Kim Alvefur # Date 1661205067 -7200 # Node ID a1f49586d28ab4e59961ba8ff5078f6948f396bb # Parent 459a4001c1d9dc788b573a1ed25a19680a6ead56 mod_restrict_xmpp: Treat archive query as a read despite using iq-set XEP-0313 uses iq-set to initiate a query, but unlike many other uses of iq-set, this does not mutate anything on the server, so it should not be treated as a write request. diff -r 459a4001c1d9 -r a1f49586d28a mod_restrict_xmpp/mod_restrict_xmpp.lua --- a/mod_restrict_xmpp/mod_restrict_xmpp.lua Mon Aug 22 20:03:23 2022 +0100 +++ b/mod_restrict_xmpp/mod_restrict_xmpp.lua Mon Aug 22 23:51:07 2022 +0200 @@ -80,6 +80,8 @@ elseif proto == "carbons" then -- This allows access to live messages proto, action = "messages", "read"; + elseif proto == "history" then + action = "read"; end local permission_name = "xmpp:account:"..(proto and (proto..":") or "")..action; if not module:may(permission_name, event) then