Skip to content

Update: adopt _access model for assets, public by default (fixes #77)#78

Merged
taylortom merged 1 commit into
masterfrom
update-assets-access-public
Jul 10, 2026
Merged

Update: adopt _access model for assets, public by default (fixes #77)#78
taylortom merged 1 commit into
masterfrom
update-assets-access-public

Conversation

@taylortom

Copy link
Copy Markdown
Collaborator

Fixes #77

Update

  • Register assets with authored using the default creator grant (previously accessCheck: false) so a creator can always access their own assets.
  • Add migration 1.12.0 backfilling existing assets to _access.public: true — assets were a shared pool, so they default to public. New assets inherit public: true from the schema default.

Testing

  1. As a non-superuser, GET /api/assets — your own and public assets are returned (previously empty).
  2. Start the app against a DB with pre-existing assets; confirm migration 1.12.0 sets _access.public: true on them.

Depends on adapt-security/adapt-authoring-authored#57 (per-item creator grant fix) — should land together.

@taylortom
taylortom merged commit e3db9a8 into master Jul 10, 2026
5 checks passed
github-actions Bot pushed a commit that referenced this pull request Jul 10, 2026
# [1.12.0](v1.11.0...v1.12.0) (2026-07-10)

### Update

* adopt _access model for assets, public by default (fixes #77) (#78) ([e3db9a8](e3db9a8)), closes [#77](#77) [#78](#78)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.12.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.

Assets not visible to non-superusers under the _access model

1 participant