summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/template.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 034b1e6dc..15d186a49 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -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';
}