Stop gracefully handling findAll 403s in the adapter
This commit is contained in:
parent
53211f9175
commit
fce7440f34
|
@ -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 [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue