ucfopen / Materia-Server-Client-Assets

Common Javascript and CSS resources needed for Materia and the Materia Widget Development Kit.
https://ucfopen.github.io/Materia-Docs/
GNU Affero General Public License v3.0
3 stars 10 forks source link

Adjust 'this person can edit this widget' checks on My Widgets page, locks widget instances in creator. #49

Closed FrenjaminBanklin closed 5 years ago

FrenjaminBanklin commented 5 years ago

Closes #48.

Relies on #47.

Detaches the act of locking a widget instance from clicking the 'Edit Widget' button in the My Widgets page and does it in the creator instead.

Only remaining (possible) issue: If a student tries getting clever and goes straight to the create URL of a widget instance, the checks will now prevent the creator from loading - but will still lock that instance.

Either need to consider retooling how the various methods work, or create a new endpoint that can unlock a widget instance.