diff --git a/js/headfoot.js b/js/headfoot.js
index a6a2c7f5cf4c8d29a1e4b58c82dabce1a6c32bf7..4e5eaf50e6e5a1636d809b41b85383a4f1f1ea73 100755
--- a/js/headfoot.js
+++ b/js/headfoot.js
@@ -14,7 +14,7 @@ function userAuthenticated(){
     let params = new URLSearchParams(window.location.search);
     if(params.get('isAuthenticatedUser')){
         return true;
-    }else if(document.getElementById('loginswitch')){
+    }else if(document.getElementById('loginswitch')){   //relikt login via OAuth
         if(document.getElementById('loginswitch').getAttribute('authenticated') == '1'){
             return true;
         }
@@ -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()){
+                if(userAuthenticated() || user){ //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,6 +129,10 @@ function head(){
                 headlink.innerHTML="Account";
                 headlink.href="/account/";
             }
+            if(user){ //user has priority
+                headlink.innerHTML="Logout";
+                headlink.href="/account/logout";
+            }
             headlink.classList.remove("nav-link");
             headlink.classList.add("btn");
             headlink.classList.add("btn-outline-dark");