Stop gracefully handling findAll 403s in the adapter

This commit is contained in:
Michael Lange 2017-10-24 16:06:10 -07:00
parent 53211f9175
commit fce7440f34

View file

@ -24,10 +24,9 @@ export default RESTAdapter.extend({
return this._super(...arguments).catch(error => { return this._super(...arguments).catch(error => {
const errorCodes = codesForError(error); const errorCodes = codesForError(error);
const isNotAuthorized = errorCodes.includes('403');
const isNotImplemented = errorCodes.includes('501'); const isNotImplemented = errorCodes.includes('501');
if (isNotAuthorized || isNotImplemented) { if (isNotImplemented) {
return []; return [];
} }