core.usermanager: Link to docs for new role API to make warning more actionable
authorKim Alvefur <zash@zash.se>
Sat, 27 Aug 2022 17:01:36 +0200
changeset 12687 75f0c69eba71
parent 12686 464a22f2751c
child 12688 a8b59b1be359
core.usermanager: Link to docs for new role API to make warning more actionable
core/usermanager.lua
--- a/core/usermanager.lua	Fri Aug 26 19:07:36 2022 +0100
+++ b/core/usermanager.lua	Sat Aug 27 17:01:36 2022 +0200
@@ -234,6 +234,7 @@
 		return false;
 	end
 	log("warn", "Usage of legacy is_admin() API, which will be disabled in a future build: %s", debug.traceback());
+	log("warn", "See https://prosody.im/doc/developers/permissions about the new permissions API");
 	return legacy_admin_roles[get_jid_role(jid, host)] or false;
 end