pickView
pickView(
views,roles,resource?):ViewModel|undefined
Defined in: packages/schema/src/access/pick-view.ts:7
Picks the view for a user: the first role-specific view whose roles intersect the user’s,
otherwise the default view (one without roles). With resource, only that resource’s views count.
Parameters
Section titled “Parameters”readonly ViewModel[]
readonly string[]
resource?
Section titled “resource?”string
Returns
Section titled “Returns”ViewModel | undefined