Software /
code /
prosody-modules
Changeset
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 |
parents | 5311:d4a0d2b5343a |
children | 5313:80ecba092027 |
files | mod_client_management/mod_client_management.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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");