diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-03-06 20:17:14 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-03-06 20:17:14 +0100 |
commit | 36223ba71e9350aa13c292b2cc8904d29bd929d6 (patch) | |
tree | e374003a6955f3ec3581cea083b9dc1ba48bcc73 | |
parent | aeaccbf9226faf027faf51c622cf3b415448581d (diff) | |
download | rpg-36223ba71e9350aa13c292b2cc8904d29bd929d6.tar.gz rpg-36223ba71e9350aa13c292b2cc8904d29bd929d6.tar.bz2 |
ACL check for profile button #731
darcs-hash:20060306191714-7ad00-2d97a91607c30ca0ef912419a916b42dc4553e7b.gz
-rw-r--r-- | inc/template.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php index 31f0452dc..a1911f18b 100644 --- a/inc/template.php +++ b/inc/template.php @@ -358,7 +358,8 @@ function tpl_button($type){ print html_btn('backlink',$ID,'',array('do' => 'backlink')); break; case 'profile': - if(($_SERVER['REMOTE_USER']) && $auth->canDo('Profile') && ($ACT!='profile')){ + if($conf['useacl'] && $_SERVER['REMOTE_USER'] && + $auth->canDo('Profile') && ($ACT!='profile')){ print html_btn('profile',$ID,'',array('do' => 'profile')); } break; @@ -466,7 +467,8 @@ function tpl_actionlink($type,$pre='',$suf=''){ tpl_link(wl($ID,'do=backlink'),$pre.$lang['btn_backlink'].$suf, 'class="action backlink"'); break; case 'profile': - if(($_SERVER['REMOTE_USER']) && $auth->canDo('Profile') && ($ACT!='profile')){ + if($conf['useacl'] && $_SERVER['REMOTE_USER'] && + $auth->canDo('Profile') && ($ACT!='profile')){ tpl_link(wl($ID,'do=profile'),$pre.$lang['btn_profile'].$suf, 'class="action profile"'); } break; |