find_privileged()
Usage
find_privileged(type, key, value, key, value, ...)
find_privileged(type, key, value)
find_privileged(type, map)
find_privileged(type, uuid)
find_privileged(type)
Description
Executes a find() operation with elevated privileges.
Usecases
find_privileged()
can be used to query data from an anonymous context or when a users privileges need to be escalated.
Caution
It is recommended to use find() instead of find_privileged() whenever possible, as improper use of find_privileged() can result in the exposure of sensitive data.