platform icon indicating copy to clipboard operation
platform copied to clipboard

Attempt to load restricted images for logged in staff members

Open gestchild opened this issue 6 months ago • 0 comments

Relates to https://github.com/wellcomecollection/platform/issues/5747 and Relates to https://github.com/wellcomecollection/platform/issues/5755

At the moment if a user attempts to view restricted material one of two things can happen:

  1. If all images in the manifest are restricted the item viewer won't load and they are presented with a modal telling them that the item is restricted, https://wellcomecollection.org/works/jjdp9v65/items

  2. If only some of the images in the manifest are restricted the item viewer can be loaded, but restricted images won't load and there will be a message instead telling the user the image is restricted, http://localhost:3000/works/nvnknvs7/items (This example also requires the user to accept terms with a clickthrough in order to see the viewable image)

Some staff will have the necessary permissions to view restricted material. So if staff are logged (which we can tell from their ~email address~ user role) we should use the external interaction pattern to attempt to load the images.

gestchild avatar Aug 13 '24 09:08 gestchild