aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-06-15 14:22:26 +0100
committerMatthew Wild <mwild1@gmail.com>2022-06-15 14:22:26 +0100
commit57ed2e28a09933dd6220dd6ddd84f0f442e9b71f (patch)
treeda61a8111678386085028115c63329b07bcfbe78 /teal-src
parentd73714b4f426da4f9c79d5ddf0b8cb11d09e9f3f (diff)
downloadprosody-57ed2e28a09933dd6220dd6ddd84f0f442e9b71f.tar.gz
prosody-57ed2e28a09933dd6220dd6ddd84f0f442e9b71f.zip
teal-src: update module.d.tl with new access control methods
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/module.d.tl5
1 files changed, 5 insertions, 0 deletions
diff --git a/teal-src/module.d.tl b/teal-src/module.d.tl
index cb7771e2..24eb9558 100644
--- a/teal-src/module.d.tl
+++ b/teal-src/module.d.tl
@@ -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)