Ejabberd: is there a way to determine if a user is an administrator?

I looked through the module development documentation , but I can’t find an API that would help me determine if the user (i.e. identified by the JID) is allowed administrative access.

I understand that there is an "acl" module that looks promising (or probably the answer in general), but the public API is not documented.

Should I just assume that the acl module is the correct way to access user credentials?

+3
source share
1 answer

Yes, the acl module is what you are looking for:

acl:match_rule(Host, admin, Jid) =:= allow

, Jid . (, acls, "admin" ejabberd.cfg)

+3

Source: https://habr.com/ru/post/1717967/


All Articles