Annotate
teal-src/util/array.d.tl @ 12748:7b9de8109a90
util.roles: Add a :policies() method to iterate through available policies
We don't expose the policies directly, to force people to go through :may().
However, there are times when we really just need to know what policies a
role has inside it (e.g. for reporting or debugging purposes).
author |
Matthew Wild <mwild1@gmail.com> |
date |
Fri, 07 Oct 2022 17:01:35 +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
|