summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-06-22 16:11:31 +0200
committerAdrian Lang <lang@cosmocode.de>2010-06-22 17:56:35 +0200
commit2380e8a8af37991018a772ad4a619c6f5c683629 (patch)
tree7d5b4ee574695e90feddc9cea13ca470b1299e52 /inc/template.php
parent2bd7407465fc660d5b853f71be1012905d8c896b (diff)
downloadrpg-2380e8a8af37991018a772ad4a619c6f5c683629.tar.gz
rpg-2380e8a8af37991018a772ad4a619c6f5c683629.tar.bz2
Hide logout button if auth backend cannot logout
Diffstat (limited to 'inc/template.php')
-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';
}