Skip to content

Commit

Permalink
Fir for 0004995: Sign up for a new account no longer works...
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3199 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
marcelloscata committed Dec 18, 2004
1 parent 3d318bb commit ef69cd5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/current_user_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: current_user_api.php,v 1.24 2004-12-11 20:20:12 prichards Exp $
# $Id: current_user_api.php,v 1.25 2004-12-18 09:38:36 marcelloscata Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -78,7 +78,12 @@ function current_user_is_protected() {
# --------------------
# 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
Expand Down

0 comments on commit ef69cd5

Please sign in to comment.