Changeset

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
parents 12642:9061f9621330
children 12644:4262ce516e6c
files teal-src/module.d.tl
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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)