From 36223ba71e9350aa13c292b2cc8904d29bd929d6 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 6 Mar 2006 20:17:14 +0100 Subject: ACL check for profile button #731 darcs-hash:20060306191714-7ad00-2d97a91607c30ca0ef912419a916b42dc4553e7b.gz --- inc/template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'inc') 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; -- cgit v1.2.3