Skip to content
Snippets Groups Projects
Commit 2380e8a8 authored by Adrian Lang's avatar Adrian Lang
Browse files

Hide logout button if auth backend cannot logout

parent 2bd74074
No related branches found
No related tags found
No related merge requests found
......@@ -586,7 +586,10 @@ function tpl_get_action($type) {
return false;
}
$params['sectok'] = getSecurityToken();
if($_SERVER['REMOTE_USER']){
if(isset($_SERVER['REMOTE_USER'])){
if (!$auth->canDo('logoff')) {
return false;
}
$params['do'] = 'logout';
$type = 'logout';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment