ExtensionEngine / tailor

Content authoring platform
MIT License
31 stars 10 forks source link

Feature: Add assets permissions #757

Closed ikovac closed 3 years ago

ikovac commented 3 years ago

This PR extends an existing storage proxy. It introduces a new storage folder structure where assets are stored under repository/repositoryId. This structure is suitable for checking asset permissions.

Todo:

Note: In order to work with the tce-scorm element this PR need to be merged: https://github.com/ExtensionEngine/tce-scorm/pull/2

Important 💥 This PR introduces breaking changes related to assets. It is necessary to run a migration script to make it work properly. Run npm run migrateAssetsLocation

ikovac commented 3 years ago

After conversation with @underscope, we decided to change migration logic a little bit so that we don't have to specify the exact CONTENT_ELEMENT which to migrate and rather migrate all content elements which contain assets/embeds data property.