diff options
author | Anika Henke <anika@selfthinker.org> | 2011-02-22 23:04:53 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2011-02-22 23:04:53 +0000 |
commit | 3a48618a538412994ec244d5a9fde5c4a6161d10 (patch) | |
tree | 0ec52d772713d4e5839a2f90b8e5ecf0fa6a37e9 /inc/template.php | |
parent | d012ef7d2a1019a89c7fbd8c2479d7c1ed10b526 (diff) | |
download | rpg-3a48618a538412994ec244d5a9fde5c4a6161d10.tar.gz rpg-3a48618a538412994ec244d5a9fde5c4a6161d10.tar.bz2 |
improved actionOK and its use
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/inc/template.php b/inc/template.php index b873d818f..d29e3e779 100644 --- a/inc/template.php +++ b/inc/template.php @@ -581,12 +581,9 @@ function tpl_get_action($type) { $accesskey = 'b'; break; case 'login': - if(!$conf['useacl'] || !$auth){ - return false; - } $params['sectok'] = getSecurityToken(); if(isset($_SERVER['REMOTE_USER'])){ - if (!$auth->canDo('logout')) { + if (!actionOK('logout')) { return false; } $params['do'] = 'logout'; @@ -619,20 +616,19 @@ function tpl_get_action($type) { $type = 'subscribe'; $params['do'] = 'subscribe'; case 'subscribe': - if(!$conf['useacl'] || !$auth || !$conf['subscribers'] || !$_SERVER['REMOTE_USER']){ + if(!$_SERVER['REMOTE_USER']){ return false; } break; case 'backlink': break; case 'profile': - if(!$conf['useacl'] || !$auth || !isset($_SERVER['REMOTE_USER']) || - !$auth->canDo('Profile')){ + if(!isset($_SERVER['REMOTE_USER'])){ return false; } break; case 'subscribens': - // Superseeded by subscribe/subscription + // Superseded by subscribe/subscription return ''; break; default: |