Closed will-moore closed 4 years ago
Leaving to @pwalczysko to sign off since I failed to make it through yesterday, but I was wondering about the state of:
without PR | with PR | |
---|---|---|
old gallery / public | ||
old gallery / non-public | ||
new gallery / public | ||
old gallery / non-public |
but I don't think we have anywhere where that is testable.
Old gallery needed login before this PR, so nothing changes there.
The login needed? table should look like:
without PR | with PR | |
---|---|---|
old gallery / public | no | no |
old gallery / non-public | yes | yes |
new gallery / public | no | no |
new gallery / non-public | no-fail | yes |
Why does gallery fail to load the thumbs of Project 3107 (the very right one in the screenshot) whereas it loads the thumb from the Project 3108 (which looks exactly the same, same images like 3107) ?
login as user-3
Otherwise, works as described.
@pwalczysko Just looking at the code... The logic goes like this:
We just never before had 2 studies showing the same thumbnail and that situation was never envisioned for IDR.
@will-moore : leaving you to follow up on @pwalczysko's question, but merging.
See https://github.com/ome/omero-gallery/pull/42#issuecomment-527377318
This adds
@login_required()
decorator to the gallery home page, meaning that non-public users have to login. NB: The need to login for the new gallery was omitted before since all data was sometimes loaded from a different public server (e.g. IDR) so we didn't need to login locally. But this configuration is edge case and not needed in any of our workflows. More often the lack of@login_required()
on the home page would mean the page itself would load but no data would load (permission denied) and no login requested.To test: