Wingysam / Christmas-Community

Christmas lists for families
GNU Affero General Public License v3.0
206 stars 39 forks source link

fix: non URL pledges can be seen by list owner #115

Closed cj13579 closed 7 months ago

cj13579 commented 7 months ago

I missed a pretty obvious scenario in #107 which was non-URL wish list items. I am sure I had this covered at some point, but it fell through the gap.

This change implement the same logic for non-URL list items as it does for URL items. That is: if the item is pledged and the logged in user is not the list owner, the item will be shown as "striked". Otherwise, to preserve the surprise, the item remains as-is.

If accepted this PR will close #113.

Wingysam commented 7 months ago

Thanks!