Add permission checks to EDD_API
Merge branch 'release/1.7' of github.com:easydigitaldownloads/Easy-Digital-Downloads into release/1.7