diff --git a/themes/bootstrap3/js/check_save_statuses.js b/themes/bootstrap3/js/check_save_statuses.js index bfa790537b0e14e5782a828cf8c6e4de37065dbb..c30b63fc6f5f4c436e74f0576a17e305514de309 100644 --- a/themes/bootstrap3/js/check_save_statuses.js +++ b/themes/bootstrap3/js/check_save_statuses.js @@ -1,6 +1,9 @@ -/*global htmlEncode, VuFind */ +/*global htmlEncode, VuFind, userIsLoggedIn */ function checkSaveStatuses(container) { + if (!userIsLoggedIn) { + return; + } if (typeof(container) == 'undefined') { container = $('body'); }