diff options
Diffstat (limited to 'teal-src/util/roles.d.tl')
-rw-r--r-- | teal-src/util/roles.d.tl | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/teal-src/util/roles.d.tl b/teal-src/util/roles.d.tl deleted file mode 100644 index fef4f88a..00000000 --- a/teal-src/util/roles.d.tl +++ /dev/null @@ -1,32 +0,0 @@ -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 |