mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
teal-src: update module.d.tl with new access control methods
This commit is contained in:
parent
d73714b4f4
commit
57ed2e28a0
1 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,11 @@ global record moduleapi
|
|||
path : string
|
||||
resource_path : string
|
||||
|
||||
-- access control
|
||||
may : function (moduleapi, string, table|string)
|
||||
default_permission : function (string, string)
|
||||
default_permissions : function (string, { string })
|
||||
|
||||
-- methods the module can add
|
||||
load : function ()
|
||||
add_host : function (moduleapi)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue