adaptframework

Namespace

adaptframework

Description:
  • Adapt framework integration
Source:

Classes

AdaptFrameworkBuild
AdaptFrameworkImport
AdaptFrameworkModule

Methods

(static) exports.applyContentAccessFilter(query, userId)

Description:
  • Mutates a mongo content query so it only matches courses the given user can access: owned by them, marked public via `_isShared`, or in `_shareWithUsers`. Combines safely with an existing `$or` (e.g. from search) by lifting both into `$and`.
Source:
Parameters:
Name Type Description
query object The mongo query object to mutate
userId string The user's `_id` (already coerced to string)