You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Status
- Related to
RaspberryPiFoundation/digital-editor-issues#1375
## What's changed?
Previously members of schools could access Scratch projects if they had
the `cat_mode` feature was enabled.
This change allows members of schools to view/remix/update existing
scratch projects they have access to, regardless of the feature flag.
There is a new `scratch_enabled` flag in the database that decides if
school members can create new scratch projects.
As part of this we have:
- Re-purposed the existing update school endpoint to allow for updating
the new scratch_enabled flag
- Changed the logic in the scratch base controller to just check for
school membership instead of the feature
- Checked the `scratch_enabled` flag in the lessons controller
- Made the lessons controller safer by restricting what params are
accepted in updates
- Removed duplicated asset tests
- Made sure the Scratch controllers authorizes resources using our
standard pattern
## As part of deploy
We should deploy the frontend changes soon after this to make it easier
to toggle the Scratch feature
0 commit comments