From: masc <mar...@us...> - 2004-12-18 09:38:59
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19002/core Modified Files: current_user_api.php Log Message: Fir for 0004995: Sign up for a new account no longer works... Index: current_user_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/current_user_api.php,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- current_user_api.php 11 Dec 2004 20:20:12 -0000 1.24 +++ current_user_api.php 18 Dec 2004 09:38:36 -0000 1.25 @@ -78,7 +78,12 @@ # -------------------- # Return true if the currently user is the anonymous user function current_user_is_anonymous() { + if ( auth_is_user_authenticated() ) { return current_user_get_field( 'username' ) == config_get( 'anonymous_account' ); + } + else { + return false; + } } # -------------------- # Trigger an ERROR if the current user account is protected |