Fix some bugs where the wrong authenticate was being called.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge pull request #310 from Acidity/feature/permissionsAuthFix

Fix some bugs where the wrong authenticate was being called.