merged working with dev branch

This commit is contained in:
David Baldwynn 2015-11-03 12:53:42 -08:00
parent fb37c29c03
commit 9d63765f15

View file

@ -8,7 +8,7 @@ angular.module('users').config(['$httpProvider',
responseError: function(response) {
// console.log($location.path());
if( $location.path() !== '/users/me' && $location.path() !== '/forms' && response.config){
if(response.config.url !== '/users/me' && $location.path() !== '/forms'){
if(response.config.url !== '/users/me' && response.config.url !== '/forms'){
console.log('intercepted rejection of ', response.config.url, response.status);
if (response.status === 401) {
// save the current location so that login can redirect back