Skip to content

Update: Remove checkContentAccess in favour of generic _access #194

@taylortom

Description

@taylortom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions