Good afternoon - I am in the process of writing a AngularJS front-end for some CoS functions that my integration team uses for auditing, analyzing and various other purposes. I have re-tooled the functions to return JSON results that AngularJS can then interpret and display. Many kudos to the AngularJS series on this site for giving me a jump start.
One of these functions uses %SQL.Statement to prepare a class query on %Dictionary.CompiledClassQuery, Summary.This works perfectly if I give the web app making the call %All privileges but obviously I don't want to do that.

This error appears:

