Annotate
teal-src/util/array.d.tl @ 12648:f299e570a0fe
mod_authz_internal: Use util.roles, some API changes and config support
This commit was too awkward to split (hg record didn't like it), so:
- Switch to the new util.roles lib to provide a consistent representation of
a role object.
- Change API method from get_role_info() to get_role_by_name() (touches
sessionmanager and usermanager)
- Change get_roles() to get_user_roles(), take a username instead of a JID
This is more consistent with all other usermanager API methods.
- Support configuration of custom roles and permissions via the config file
(to be documented).
| author |
Matthew Wild <mwild1@gmail.com> |
| date |
Tue, 19 Jul 2022 18:02:02 +0100 |
| parent |
12611:33b7e7bd83fd |
| rev |
line source |
|
12611
|
1 local record array_t<T>
|
|
|
2 { T }
|
|
|
3 end
|
|
|
4
|
|
|
5 local record lib
|
|
|
6 metamethod __call : function () : array_t
|
|
|
7 end
|
|
|
8
|
|
|
9 return lib
|