Software /
code /
prosody
File
teal-src/prosody/util/roles.d.tl @ 12979:fbbf4f0db8f0
teal: Move into prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 23 Mar 2023 13:36:52 +0100 |
parent | 12661:teal-src/util/roles.d.tl@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