Fix 500s when requesting json after logged out:

* Update permissions decorator to make sure user is logged in first, else 401
* Stop further ajax json calls on failure
This commit is contained in:
Imdad Ahad
2016-10-21 14:24:21 +01:00
parent 09d7f6e8a6
commit 2a2a733a41
2 changed files with 12 additions and 5 deletions

View File

@@ -26,7 +26,7 @@
).done(
response => flushQueue(queue, response)
).fail(
() => clearQueue(queue)
() => poll = function(){}
);
setTimeout(