Software /
code /
prosody
File
teal-src/util/roles.d.tl @ 12827:0605d4f03e25
net.server_epoll: Factor out single main loop step into its own function
This isn't actually used in Prosody, so no value in complicating the
real main loop because of it
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Jan 2023 02:31:21 +0100 |
parent | 12661:1c391c17a907 |
line wrap: on
line source
local record util_roles type context = any record Role id : string name : string description : string default : boolean priority : number -- or integer? permissions : { string : boolean } may : function (Role, string, context) clone : function (Role, role_config) set_permission : function (Role, string, boolean, boolean) end is_role : function (any) : boolean record role_config name : string description : string default : boolean priority : number -- or integer? inherits : { Role } permissions : { string : boolean } end new : function (role_config, Role) : Role end return util_roles