Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not show invalid images as no_rights in costState
I did this in #3854 to try and override all other costs when an image is missing credit or description (one definition of "valid"). Instead it overrides all other costs whenever an image is uncroppable (restricted, overquota, etc., the other definition of "valid"). costState is used to determine both which flags to show on the search results page, and also the warnings/error messages on the image page, which means that this change hid the restriction text from ALL unpermissioned users! So revert this logic now, and commit to finding a better way of applying the invalid flag in the future.
- Loading branch information