Loris icon indicating copy to clipboard operation
Loris copied to clipboard

[Imaging and Brain Browser] - All sites permission not working

Open charliehenrib opened this issue 1 year ago • 5 comments

Describe the bug A clear and concise description of what the bug is If you have the permission "Imaging Browser: View Imaging Scans - All Sites" you can access the imaging browser for other site, but you cannot see the image and you get the error below (screenshot) when using brainbrowser. This error disappear if you are granted permission to the site using the site multi select.

To Reproduce Steps to reproduce the behavior (attach screenshots if applicable):

  1. Go to user account and make sure you only have access to one site and have the all sites imaging browser permission
  2. Click on imaging browser and access a candidate that you don't have the site permission for
  3. Scroll down to all type of images and see error # 1, the image does not load.
  4. See error # 2 when clicking on the missing image and going to brainbrowser.

What did you expect to happen? A clear and concise description of what you expected to happen. you should be able to access the images from both imaging browser and brainbrowser.

Additional context Add any other context about the problem here. image

charliehenrib avatar Feb 29 '24 14:02 charliehenrib

Ahok, thanks for finding that. I briefly had this issue during my testing but it disappeared and I did not manage to find back the reproduction conditions so I kind of forgot it (which I probably shouldn't have). I can look into it if needed.

maximemulder avatar Feb 29 '24 15:02 maximemulder

the problem is already on the agenda for the next imaging meeting, it's because BrainBrowser uses the API (which requires access to the candidate) while the imaging_browser has its own maze of permissions.

driusan avatar Feb 29 '24 15:02 driusan

@charliehenrib can you download the files using the download buttons when this issue happen in BB? Can you also see the picture/screenshot displayed in the view Session page?

cmadjar avatar Mar 01 '24 15:03 cmadjar

@cmadjar This is what I get when I try to download the file image I cannot see the image on the imaging browser or the brainbrowser.

charliehenrib avatar Mar 04 '24 17:03 charliehenrib

The workaround (for now) is to give the user access to the sites, instead of the all_sites permission.

driusan avatar Mar 11 '24 13:03 driusan