pub fn plan_protected_fields(
class_name: &str,
clp: Option<&ClassLevelPermissions>,
scope: &AclScope,
pinned_object_id: Option<&str>,
options: &PermissionOptions,
) -> Option<ProtectedFieldPlan>Expand description
addProtectedFields (DatabaseController.js:1821-1925).
pinned_object_id is the query’s top-level objectId equality, if it has one. It exists only
for the _User owner exemption.
Returns None when nothing is protected, which is upstream’s null.