Context
Part of the generic _access mechanism — see adapt-security/adapt-authoring-api#98.
Summary
Remove the hardcoded checkContentAccess method and the content.accessCheckHook.tap() call from init(). The access checks it currently performs are replaced by:
_access.public — replaces _isShared (handled by api module via enableAccessControl)
_access.users — replaces _shareWithUsers (handled by users module)
createdBy ownership — handled by authored module
Data migration
A migration script is needed to convert existing course documents:
_isShared: true → _access.public: true
_shareWithUsers: [...] → _access.users: [...]
- Remove old
_isShared and _shareWithUsers fields
Dependencies
Context
Part of the generic
_accessmechanism — see adapt-security/adapt-authoring-api#98.Summary
Remove the hardcoded
checkContentAccessmethod and thecontent.accessCheckHook.tap()call frominit(). The access checks it currently performs are replaced by:_access.public— replaces_isShared(handled by api module viaenableAccessControl)_access.users— replaces_shareWithUsers(handled by users module)createdByownership — handled by authored moduleData migration
A migration script is needed to convert existing course documents:
_isShared: true→_access.public: true_shareWithUsers: [...]→_access.users: [...]_isSharedand_shareWithUsersfieldsDependencies
_access.users/_access.groupssupport