openfoodnetwork
https://github.com/openfoodfoundation/openfoodnetwork
Ruby
Connect suppliers, distributors and consumers to trade local produce.
OpenFoodNetwork::AddressFinder#allow_search_by_email?
Only allow search for address by email if a customer or user with the same address has been provided, otherwise we are providing access to addresses with only an email address, which could be problematic. Assumption: front-end users can't ask this library for an address using a customer or user other than themselves...
Edit
git clone [email protected]:openfoodfoundation/openfoodnetwork.git
cd openfoodnetwork
open lib/open_food_network/address_finder.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-OpenFoodNetwork--AddressFinder-allow_search_by_email--for-pr
# Commit to gitgit add lib/open_food_network/address_finder.rbgit commit -m "better docs for OpenFoodNetwork::AddressFinder#allow_search_by_email?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-OpenFoodNetwork--AddressFinder-allow_search_by_email--for-pr
hub pull-request
# Celebrate!