From: <jfi...@us...> - 2002-09-16 00:54:19
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv10539 Modified Files: account_update.php Log Message: use new api function Index: account_update.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/account_update.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- account_update.php 15 Sep 2002 21:59:12 -0000 1.19 +++ account_update.php 16 Sep 2002 00:54:15 -0000 1.20 @@ -20,7 +20,6 @@ $f_email = email_append_domain( $f_email ); $t_id = auth_get_current_user_id(); - $t_protected = current_user_get_field( 'protected' ); $t_user_table = config_get( 'mantis_user_table' ); @@ -28,7 +27,7 @@ # protected account check # If an account is protected then no one can change the information # This is useful for shared accounts or for demo purposes - if ( ON == $t_protected ) { + if ( current_user_is_protected() ) { trigger_error( ERROR_PROTECTED_ACCOUNT, ERROR ); } else { email_ensure_valid( $f_email ); |