aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-06-01 13:44:12 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-06-01 13:44:12 +0000
commitad4cfc051ca94b8f326072bd877ede82195188d6 (patch)
tree9b02226d8579168a08d2456816506d49d08a7ffd /phpBB/viewtopic.php
parentf3d9aa24f069ccc9f50e05e51e1cd4a30304fd1d (diff)
downloadforums-ad4cfc051ca94b8f326072bd877ede82195188d6.tar
forums-ad4cfc051ca94b8f326072bd877ede82195188d6.tar.gz
forums-ad4cfc051ca94b8f326072bd877ede82195188d6.tar.bz2
forums-ad4cfc051ca94b8f326072bd877ede82195188d6.tar.xz
forums-ad4cfc051ca94b8f326072bd877ede82195188d6.zip
Allow restricted view forums
git-svn-id: file:///svn/phpbb/trunk@402 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 21e0cd9fd7..a12f94d0d8 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -214,9 +214,9 @@ init_userprefs($userdata);
//
// Start auth check
//
-$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row[0]);
+$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row[0]);
-if(!$is_auth)
+if(!$is_auth['auth_view'] || !$is_auth['auth_view'])
{
//
// Ooopss, user is not authed