Return the list of field names on a model that role is allowed to VIEW.
role
Useful for passing to findAll({ attributes: ... }) to prevent loading restricted data at the database level.
findAll({ attributes: ... })
The model constructor
The current user's role
Optional
The full list of attribute names. If omitted, the registry's field rules are used as the universe (only fields with explicit rules are considered).
Return the list of field names on a model that
roleis allowed to VIEW.Useful for passing to
findAll({ attributes: ... })to prevent loading restricted data at the database level.