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?
Yes, the acl module is what you are looking for:
acl:match_rule(Host, admin, Jid) =:= allow
, Jid . (, acls, "admin" ejabberd.cfg)
Source: https://habr.com/ru/post/1717967/More articles:Seam 2.2.0 URL Rewriting Doesn't Work - url-rewritingHow could he work with multiple cursors on a single Windows client? - c #MySQL: Union of the left joins the correct connection - sqlDeploying ASP.NET Applications: Push vs. Pull - asp.netSQL connection error ... what is it called? - sqlHow to burn DVD video from C #? - c #FFmpeg: "[h264 @] AVC: потребляется только n байтов вместо n + 6" - ffmpegIs AMF flash only? - amfThe PTE structure in the linux kernel - linuxiphone: Can I save a user login in a plist that lives in a resource folder? - iphoneAll Articles