comparison mod_client_management/mod_client_management.lua @ 5582:825c6fb76c48

Multiple modules: Update for split prosody:user role (prosody 082c7d856e61)
author Matthew Wild <mwild1@gmail.com>
date Thu, 29 Jun 2023 15:58:33 +0100
parents f25df3af02c1
children b43ff0302204
comparison
equal deleted inserted replaced
5581:df483d9056f5 5582:825c6fb76c48
8 local jid = require "util.jid"; 8 local jid = require "util.jid";
9 local st = require "util.stanza"; 9 local st = require "util.stanza";
10 10
11 local strict = module:get_option_boolean("enforce_client_ids", false); 11 local strict = module:get_option_boolean("enforce_client_ids", false);
12 12
13 module:default_permission("prosody:user", ":list-clients"); 13 module:default_permission("prosody:registered", ":list-clients");
14 module:default_permission("prosody:user", ":manage-clients"); 14 module:default_permission("prosody:registered", ":manage-clients");
15 15
16 local tokenauth = module:depends("tokenauth"); 16 local tokenauth = module:depends("tokenauth");
17 local mod_fast = module:depends("sasl2_fast"); 17 local mod_fast = module:depends("sasl2_fast");
18 18
19 local client_store = assert(module:open_store("clients", "keyval+")); 19 local client_store = assert(module:open_store("clients", "keyval+"));