plugins/mod_authz_internal.lua
changeset 12924 cdb996637b08
parent 12744 f58c6ae5edc1
child 12929 6cb339423928
--- a/plugins/mod_authz_internal.lua	Thu Mar 02 22:34:29 2023 +0100
+++ b/plugins/mod_authz_internal.lua	Sat Mar 04 18:40:43 2023 +0100
@@ -280,6 +280,10 @@
 	return assert(role_registry[role_name], role_name);
 end
 
+function get_all_roles()
+	return role_registry;
+end
+
 -- COMPAT: Migrate from 0.12 role storage
 local function do_migration(migrate_host)
 	local old_role_store = assert(module:context(migrate_host):open_store("roles"));