aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-06-15 23:03:15 +0200
committerKim Alvefur <zash@zash.se>2022-06-15 23:03:15 +0200
commitc776c71066e22eff9f8c5b0401946513bd22f103 (patch)
tree60a4dbd1641b8daf466735f8dcca14ff94b4d9c0 /core
parent57ed2e28a09933dd6220dd6ddd84f0f442e9b71f (diff)
downloadprosody-c776c71066e22eff9f8c5b0401946513bd22f103.tar.gz
prosody-c776c71066e22eff9f8c5b0401946513bd22f103.zip
core.moduleapi: Fixup method name
`get_user_role()` did not exist anywhere else. MattJ said `get_user_default_role()` was indented
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index f0b412f3..0652e032 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -619,7 +619,7 @@ function api:may(action, context)
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