From 82fd59b6cf8cda9b2c419fb08bbc40a571b36fe8 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 3 Feb 2006 16:03:02 +0100 Subject: 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 --- inc/html.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index e53dcbaf6..c641dc212 100644 --- a/inc/html.php +++ b/inc/html.php @@ -73,14 +73,14 @@ function html_login(){ canDo('addUser') && $conf['openregister']){ print '

'; print $lang['reghere']; print ': '.$lang['register'].''; print '

'; } - if ($auth->canDo('modifyUser') && $conf['resendpasswd']) { + if ($auth->canDo('modPass') && $conf['resendpasswd']) { print '

'; print $lang['pwdforget']; print ': '.$lang['btn_resendpwd'].''; @@ -872,6 +872,7 @@ function html_updateprofile(){ global $conf; global $ID; global $INFO; + global $auth; print p_locale_xhtml('updateprofile'); @@ -891,12 +892,14 @@ function html_updateprofile(){



+ + canDo('modPass')) { ?>
+
-- cgit v1.2.3