Changeset

12683:75f0c69eba71

core.usermanager: Link to docs for new role API to make warning more actionable
author Kim Alvefur <zash@zash.se>
date Sat, 27 Aug 2022 17:01:36 +0200
parents 12682:464a22f2751c
children 12684:a8b59b1be359
files core/usermanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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