Updated fetchCorpusPermissions to catch requests made from Spreadsheet app.