From c7068034466e573899d43da847b073ce66af4462 Mon Sep 17 00:00:00 2001
From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de>
Date: Tue, 22 Oct 2019 13:02:45 +0200
Subject: [PATCH] test dynamic header

---
 js/headfoot.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/js/headfoot.js b/js/headfoot.js
index 1606697..b5c6f81 100755
--- a/js/headfoot.js
+++ b/js/headfoot.js
@@ -11,11 +11,11 @@ function prependChild(parent,child){
 }
 
 function userAuthenticated(){
-    console.log(document.getElementById('loginswitch').href);
+    console.log(document.getElementById('loginswitch').getAttribute('authenticated'));
     let params = new URLSearchParams(window.location.search);
     if(params.get('isAuthenticatedUser')){
         return true;
-    }else if(document.getElementById('loginswitch').href == '1'){
+    }else if(document.getElementById('loginswitch').getAttribute('authenticated') == '1'){
         return true;
     }else{
         return false;
-- 
GitLab