aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
authorJosh Woody <a_jelly_doughnut@phpbb.com>2010-07-05 22:22:25 -0500
committerJosh Woody <a_jelly_doughnut@phpbb.com>2010-07-08 13:24:45 -0500
commitae967d16f1ad584d7e03b4466e6cc3d1d067dea6 (patch)
treed7538d8995facd4f96b462be90ab515f27be8040 /phpBB/includes/acp/acp_users.php
parentb7ae0fe4e91be1f7dc1d38d2c3c1e5b043d95739 (diff)
downloadforums-ae967d16f1ad584d7e03b4466e6cc3d1d067dea6.tar
forums-ae967d16f1ad584d7e03b4466e6cc3d1d067dea6.tar.gz
forums-ae967d16f1ad584d7e03b4466e6cc3d1d067dea6.tar.bz2
forums-ae967d16f1ad584d7e03b4466e6cc3d1d067dea6.tar.xz
forums-ae967d16f1ad584d7e03b4466e6cc3d1d067dea6.zip
[ticket/9650] Do not allow banning the anonymous user by username
Banning anonymous can result in bad things, like not being able to log in. However, it was possible until now. PHPBB3-9650
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r--phpBB/includes/acp/acp_users.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index 7914edd056..2843480c04 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -231,6 +231,11 @@ class acp_users
trigger_error($user->lang['CANNOT_BAN_YOURSELF'] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING);
}
+ if ($user_id == ANONYMOUS)
+ {
+ trigger_error($user->lang['CANNOT_BAN_ANONYMOUS'] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING);
+ }
+
if ($user_row['user_type'] == USER_FOUNDER)
{
trigger_error($user->lang['CANNOT_BAN_FOUNDER'] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING);