fixed intercepted error

This commit is contained in:
David Baldwynn 2015-11-03 12:44:55 -08:00
parent 4546f3418d
commit 40c1b25703

View file

@ -7,7 +7,7 @@ angular.module('users').config(['$httpProvider',
return {
responseError: function(response) {
// console.log($location.path());
if( $location.path() !== '/users/me' && $location.path() !== '/forms' && response.config){
if( ($location.path() !== '/users/me' || $location.path() !== '/forms') && response.config){
if(response.config.url !== '/users/me'){
console.log('intercepted rejection of ', response.config.url, response.status);
if (response.status === 401) {