Changeset

12644:4262ce516e6c

core.moduleapi: Fixup method name `get_user_role()` did not exist anywhere else. MattJ said `get_user_default_role()` was indented
author Kim Alvefur <zash@zash.se>
date Wed, 15 Jun 2022 23:03:15 +0200
parents 12643:9fa749cbd376
children 12645:a741183eec97
files core/moduleapi.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/moduleapi.lua	Wed Jun 15 14:22:26 2022 +0100
+++ b/core/moduleapi.lua	Wed Jun 15 23:03:15 2022 +0200
@@ -619,7 +619,7 @@
 		local role;
 		local node, host = jid_split(context);
 		if host == self.host then
-			role = hosts[host].authz.get_user_role(node);
+			role = hosts[host].authz.get_user_default_role(node);
 		else
 			role = hosts[self.host].authz.get_jid_role(context);
 		end