Commit da115f20 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

new SAML header

3 merge requests!32Prepare production,!29Mlab 197,!6Contact mailinglist assets
Pipeline #362 passed with stage
in 5 seconds
Showing with 2 additions and 2 deletions
+2 -2
......@@ -111,7 +111,7 @@ function head(){
for(let k = 0; k< menu[j].combos.length; k++){
let combolink = document.createElement('a');
combolink.classList.add("dropdown-item");
if(userAuthenticated() || user){ //either logged in the old way or logged in using SAML
if(userAuthenticated() || typeof user !== 'undefined'){ //either logged in the old way or logged in using SAML
if(menu[j].combos[k].link.includes('?')){
combolink.href = menu[j].combos[k].link + "&isAuthenticatedUser=true";
}else{
......@@ -129,7 +129,7 @@ function head(){
headlink.innerHTML="Account";
headlink.href="/account/";
}
if(user){ //user has priority
if(typeof user !== 'undefined'){ //user has priority
headlink.innerHTML="Logout";
headlink.href="/account/logout";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment