Diff

core/usermanager.lua @ 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
parent 12667:0278987b8687
child 12905:8473a516004f
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