Software /
code /
prosody-modules
Diff
mod_client_management/mod_client_management.lua @ 5312:22e6b9f09439
mod_client_management: Add list-clients + manage-clients permissions to users
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 06 Apr 2023 16:10:27 +0100 |
parent | 5311:d4a0d2b5343a |
child | 5343:5c1c70e52635 |
line wrap: on
line diff
--- a/mod_client_management/mod_client_management.lua Thu Apr 06 16:09:56 2023 +0100 +++ b/mod_client_management/mod_client_management.lua Thu Apr 06 16:10:27 2023 +0100 @@ -10,6 +10,9 @@ local strict = module:get_option_boolean("enforce_client_ids", false); +module:default_permission("prosody:user", ":list-clients"); +module:default_permission("prosody:user", ":manage-clients"); + local tokenauth = module:depends("tokenauth"); local mod_fast = module:depends("sasl2_fast");