cozy / cozy-photos-v2

Deprecated - New : https://github.com/cozy/cozy-drive/tree/master/src/photos - Personal Photo Gallery Manager
http://cozy.io
GNU Affero General Public License v3.0
27 stars 25 forks source link

Can't download one photo in shared album #124

Closed poupotte closed 8 years ago

poupotte commented 9 years ago

When I share an album, if I access it with the shared link, I can download album but I can't download only one picture. Indeed, button to download it in gallery isn't available.

0gust1 commented 8 years ago

+1 - https://forum.cozy.io/t/photos-appel-a-suggestions/1449/35

0gust1 commented 8 years ago

It's a bit strange, there is code to manage that, but it seems it's not working.

I can't reproduce the comportement of production in my dev environnement. Maybe a problem with authorizations/flags (app.mode) ?

Actual production (on cozycloud.cc) : when logged : there is a button to download a given picture when not logged (access with shared link) : no button

Dev env when "logged" : no button to download image when not logged : the sharing link doesn't work at all.

Code :

https://github.com/cozy/cozy-photos/blob/master/client/app/views/galery.coffee#L92 condition : https://github.com/cozy/cozy-photos/blob/master/client/app/views/galery.coffee#L46

frankrousseau commented 8 years ago

Hello @0gust1,

Do you use the cozy-dev deploy command to test the link?

0gust1 commented 8 years ago

Damned, I'm afraid that no. Thanks for the reminder, I'll test asap.

poupotte commented 8 years ago

@clochix : It doesn't work for me :(. haven't download button for only one picture in a shared album with new photo version (1.0.23)

clochix commented 8 years ago

Looks like a build issue, app.js has not been updated. Ping @aenario

poupotte commented 8 years ago

Thanks @clochix , it works with 1.0.24 !