Stop gracefully handling findAll 403s in the adapter

This commit is contained in:
Michael Lange
2017-10-24 16:06:10 -07:00
parent b010638724
commit 84832a6548

View File

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