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 => {
|
||||
const errorCodes = codesForError(error);
|
||||
|
||||
const isNotAuthorized = errorCodes.includes('403');
|
||||
const isNotImplemented = errorCodes.includes('501');
|
||||
|
||||
if (isNotAuthorized || isNotImplemented) {
|
||||
if (isNotImplemented) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue