mod_storage_xmlarchive: Add support for user iteration API
authorKim Alvefur <zash@zash.se>
Sun, 05 May 2019 16:09:30 +0200
changeset 3589 ddf109d58eff
parent 3588 611ac62c5b63
child 3590 796b29911747
mod_storage_xmlarchive: Add support for user iteration API Helps migration tools discover available users
mod_storage_xmlarchive/mod_storage_xmlarchive.lua
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun May 05 16:04:20 2019 +0200
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun May 05 16:09:30 2019 +0200
@@ -286,6 +286,10 @@
 	return dates;
 end
 
+function archive:users()
+	return dm.users(module.host, self.store, "list");
+end
+
 local provider = {};
 function provider:open(store, typ)
 	if typ ~= "archive" then return nil, "unsupported-store"; end