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
Most of the Media operations on works in modules/core/lib/work.js need to get the work to check permissions, and possibly also Work.media to be able to manipulate the list. The relevant calls to db.Work.findByIdAsync should add the parameter to select the minimal set of fields to avoid dragging in annotations etc.
Better list the permission fields as a constant, refering to it later, to make it easy to add as we extend the permission system.
Current list of affected functions are:
getWorkMedia
createWorkMedia
removeMediaFromWork
unlinkAllMedia
addMediaToWork
The text was updated successfully, but these errors were encountered:
Most of the Media operations on works in
modules/core/lib/work.js
need to get the work to check permissions, and possibly alsoWork.media
to be able to manipulate the list. The relevant calls todb.Work.findByIdAsync
should add the parameter to select the minimal set of fields to avoid dragging in annotations etc.Better list the permission fields as a constant, refering to it later, to make it easy to add as we extend the permission system.
Current list of affected functions are:
The text was updated successfully, but these errors were encountered: