luomus / laji

Frontend for Finnish Biodiversity Information Facility (FinBIF) data portal laji.fi (and other *.laji.fi frontends)
MIT License
7 stars 0 forks source link

Add graceful message when no permissions to edit media #632

Open mikkohei13 opened 2 weeks ago

mikkohei13 commented 2 weeks ago

Image metadata has upload MA.xxx identifier. Permissions are based on that. If another user tries to update and save media metadata, UI shows "Tallennus epäonnistui." message.

Solution (decided in April 2024): disable modifying image metadata if user not uploader of the image. Need to decide how: e.g. replace tallenna button with text "You are not the owner of this file, so you cannot edit it."