Skip to content

New: Enable access control (fixes #66)#76

Merged
taylortom merged 1 commit into
masterfrom
new/enable-access-control
Jul 9, 2026
Merged

New: Enable access control (fixes #66)#76
taylortom merged 1 commit into
masterfrom
new/enable-access-control

Conversation

@taylortom

Copy link
Copy Markdown
Collaborator

Fixes #66

New

  • Opt assets into the generic _access model: call this.enableAccessControl() in init() (adds the base _access.public grant and extends the asset schema) and wire per-user sharing via users.registerUserModule(this). Group sharing is wired from the usergroups module (adapt-authoring-usergroups#14), so assets now supports _access.public / _access.users / _access.groups.
  • No ownership grant (authored.registerModule(this, { accessCheck: false }) is retained) — assets are shared, not owner-scoped.

Testing

  • Existing unit tests pass (33); npx standard clean.
  • The _access schema composition (public + users + groups on one schema) is verified in the usergroups PR; assets picks up the same fragments at runtime.

Notes

  • Part of the _access rollout (api #98). _access.public defaults to true, so enabling is additive — existing assets stay visible until explicitly restricted. Lands in the coordinated umbrella release with usergroups Fix: set type to 'other' for non-AV assets (fixes #13) #14, content #117 and adaptframework #194 (which removes the old restrictive group fence).

@taylortom
taylortom merged commit 5ab070f into master Jul 9, 2026
5 checks passed
@taylortom
taylortom deleted the new/enable-access-control branch July 9, 2026 21:50
github-actions Bot pushed a commit that referenced this pull request Jul 9, 2026
# [1.11.0](v1.10.0...v1.11.0) (2026-07-09)

### Chore

* replace legacy new.yml with direct add-to-project workflow ([bfc943e](bfc943e))
* trigger add-to-project on reopened issues and PRs ([9cad82a](9cad82a))

### New

* Enable access control (fixes #66) (#76) ([5ab070f](5ab070f)), closes [#66](#66) [#76](#76)

### Upgrade

* Bump adapt-authoring-api from 3.10.0 to 4.0.1 ([87a07a4](87a07a4))
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

New: Enable access control

1 participant