diff --git a/marietje/queues/templates/queues/queue.html b/marietje/queues/templates/queues/queue.html index ce41525..bc49f12 100644 --- a/marietje/queues/templates/queues/queue.html +++ b/marietje/queues/templates/queues/queue.html @@ -544,7 +544,8 @@ "Content-Type": 'application/json', }, }).then(response => { - if (response.status === 200) { + // TODO: Communicate failure through HTTP error codes (403) instead of checking response.success. + if (response.status === 200 && response.success) { return response.json(); } else { throw response;