Software /
code /
prosody
Diff
core/moduleapi.lua @ 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 |
parent | 12642:9061f9621330 |
child | 12645:a741183eec97 |
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