fix(web(js)): show toast when fetching a folder ACLs fails

This commit is contained in:
Francis Lachapelle
2022-03-03 14:00:29 -05:00
parent 580391406f
commit 87b1c8e239
2 changed files with 4 additions and 1 deletions

View File

@@ -65,6 +65,9 @@
});
deferred.resolve(_this.users);
return _this.users;
}, function(response) {
deferred.reject(l(response.statusText));
throw Error('No access to object');
});
}
return deferred.promise;

View File

@@ -371,7 +371,7 @@
$window.recovered = true;
$window.location.href = $window.ApplicationBaseURL + $state.href($state.current);
}
else if (rejection.data && !rejection.data.quiet) {
else if (!rejection.data || !rejection.data.quiet) {
// Broadcast the response error
$rootScope.$broadcast('http:Error', rejection);
}