summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-02-03 16:03:02 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-02-03 16:03:02 +0100
commit82fd59b6cf8cda9b2c419fb08bbc40a571b36fe8 (patch)
treecddf8d28de73822bb0932f005f4056d925cc7025 /inc/template.php
parentce070a9f83cfdd14001e835635ff4e1a3f43f41c (diff)
downloadrpg-82fd59b6cf8cda9b2c419fb08bbc40a571b36fe8.tar.gz
rpg-82fd59b6cf8cda9b2c419fb08bbc40a571b36fe8.tar.bz2
new way of auth module capability checking
This changes the way of how the capabilities of the used auth module are checked as suggested as first option in http://www.freelists.org/archives/dokuwiki/01-2006/msg00267.html The MySQL backend WAS NOT TESTED and probably needs some work. darcs-hash:20060203150302-7ad00-c524cafe20499f32e76ad42b4e68d7c635f6a9e9.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index e9aba3297..3e9cd55ad 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -358,7 +358,7 @@ function tpl_button($type){
print html_btn('backlink',$ID,'',array('do' => 'backlink'));
break;
case 'profile':
- if(($_SERVER['REMOTE_USER']) && $auth->canDo('modifyUser') && ($ACT!='profile')){
+ if(($_SERVER['REMOTE_USER']) && $auth->canDo('Profile') && ($ACT!='profile')){
print html_btn('profile',$ID,'',array('do' => 'profile'));
}
break;
@@ -466,7 +466,7 @@ 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('modifyUser') && ($ACT!='profile')){
+ if(($_SERVER['REMOTE_USER']) && $auth->canDo('Profile') && ($ACT!='profile')){
tpl_link(wl($ID,'do=profile'),$pre.$lang['btn_profile'].$suf, 'class="action profile"');
}
break;