Any user, connected or not
Any connected user
User that owns the current document (document.userId is equal to currentUser._id)
Visitors that are NOT connected
The user performing the action
The field being edited or inserted
Check if user was allowed to filter this document based on some fields
The user performing the action
The list of filtered fields
The retrieved document
The user performing the action
The full document of the collection
The user performing the action
The field being edited or inserted
The document being edited or inserted
The user performing the action
The list of fields
Retrieve fields that needs the document to be already fetched to be checked, and not just the user => owners permissions, custom permissions etc.
Get fields that the user can read in this model
NOTE: to get all readable fields of the schema, without filtering depending on permissions, see @vulcanjs/schema "getReadableField"
Check if field canRead include a permission that needs to be checked against the actual document and not just from the user
The document to check (post, comment, user object, etc.)
Remove restricted fields from a document
The user performing the action
The user performing the action
Generated using TypeDoc
Admins