]> granicus.if.org Git - ejabberd/commit
Allow specifying tag for listener for api_permission purposes
authorPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 30 Jan 2019 11:56:52 +0000 (12:56 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 30 Jan 2019 11:57:03 +0000 (12:57 +0100)
commit62ad1e5e4fbfbbab848f56f10a97328d0675d501
treebfd4dbbebc20f2e3023b56e9be9c095ae954af08
parent23e5b3756c39df6028fdb38e57712016ba540a14
Allow specifying tag for listener for api_permission purposes

This commit will allow adding tag to http listeners:

listener:
  - port: 4000
  - module: ejabberd_http
  - tag: "magic_listener"

that later can be used to have special api_permission just for it:

api_permissions:
  "magic_access":
    from:
      - tag: "magic_listener"
    who: all
    what: "*"
src/ejabberd_access_permissions.erl
src/ejabberd_http.erl
src/mod_http_api.erl