Mercurial > prosody-modules
comparison mod_invite/mod_invite.lua @ 3779:5e69a4358053
mod_invite: Update to use local_user ad-hoc permission (thanks Martin)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 27 Dec 2019 11:03:29 +0000 |
parents | 4e99005cf917 |
children | 75b6e5df65f9 |
comparison
equal
deleted
inserted
replaced
3778:7209f481bcfe | 3779:5e69a4358053 |
---|---|
154 invite_storage:set(nil, tokens); | 154 invite_storage:set(nil, tokens); |
155 | 155 |
156 return { info = module:http_url() .. "/" .. uuid, status = "completed" }; | 156 return { info = module:http_url() .. "/" .. uuid, status = "completed" }; |
157 end | 157 end |
158 | 158 |
159 local adhoc_invite = adhoc_new("Invite user", "invite", invite_command_handler, "user") | 159 local adhoc_invite = adhoc_new("Invite user", "invite", invite_command_handler, "local_user") |
160 | 160 |
161 module:add_item("adhoc", adhoc_invite); | 161 module:add_item("adhoc", adhoc_invite); |