core.moduleapi: Fixup method name

`get_user_role()` did not exist anywhere else.

MattJ said `get_user_default_role()` was indented
This commit is contained in:
Kim Alvefur 2022-06-15 23:03:15 +02:00
parent 57ed2e28a0
commit c776c71066

View file

@ -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