Diff

teal-src/module.d.tl @ 12643:9fa749cbd376

teal-src: update module.d.tl with new access control methods
author Matthew Wild <mwild1@gmail.com>
date Wed, 15 Jun 2022 14:22:26 +0100
parent 12502:5862ddf71e3c
child 12979:fbbf4f0db8f0
line wrap: on
line diff
--- a/teal-src/module.d.tl	Wed Jun 15 12:15:01 2022 +0100
+++ b/teal-src/module.d.tl	Wed Jun 15 14:22:26 2022 +0100
@@ -126,6 +126,11 @@
 	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)