In SharePoint, when I need to execute an action when the user doesn't have privileges to do so, I use:
SPSecurity.RunWithElevatedPrivileges(delegate()
{
// DO SOMETHING WITH PRIVILEGES
});
But now I need to execute JavaScript with elevated privileges:
var context = new SP.ClientContext.get_current();
context.executeQueryAsync(); // NEED PRIVILEGES TO WORK
Is this possible?