aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 0811a63c15..73417d0ee1 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -179,7 +179,7 @@ if (phpbb::$user->is_bot)
// Is the user able to read within this forum?
if (!phpbb::$acl->acl_get('f_read', $forum_id))
{
- if (phpbb::$user->data['user_id'] != ANONYMOUS)
+ if (!phpbb::$user->is_guest)
{
trigger_error('USER_CANNOT_READ');
}