Fix JS error when no acl is defined

This commit is contained in:
Hypolite Petovan 2018-09-09 09:54:54 -04:00
parent 071aff223a
commit 4edbea3ed0
1 changed files with 3 additions and 1 deletions

View File

@ -305,7 +305,9 @@ $(function() {
// Asynchronous calls are deferred until the very end of the page load to ease on slower connections
window.addEventListener("load", function(){
NavUpdate();
acl.get(0, 100);
if (typeof acl !== 'undefined') {
acl.get(0, 100);
}
});
// Allow folks to stop the ajax page updates with the pause/break key