From 1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 8 Oct 2002 20:11:59 +0000 Subject: Permission related updates ... is still not final but is getting there ... faster than British Rail too git-svn-id: file:///svn/phpbb/trunk@2943 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/index.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'phpBB/index.php') diff --git a/phpBB/index.php b/phpBB/index.php index a36ef5e66a..087ad7b4b7 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -39,11 +39,9 @@ else // Start session management $userdata = $session->start(); $auth->acl($userdata); +$user = new user($userdata); // End session management -// Configure style, language, etc. -$session->configure($userdata); - // Handle marking posts if ($mark_read == 'forums') { @@ -116,7 +114,7 @@ else { $is_nav = TRUE; - if (!$auth->get_acl($cat_id, 'forum', 'list')) + if (!$auth->acl_get('f_list', $cat_id)) { // TODO: Deal with hidden categories message_die(ERROR, $lang['Category_not_exist']); @@ -194,7 +192,7 @@ while ($row = $db->sql_fetchrow($result)) elseif ($row['display_on_index'] && $row['forum_status'] != ITEM_CATEGORY) { // Subforum, store it for direct linking - if ($auth->get_acl($row['forum_id'], 'forum', 'list')) + if ($auth->acl_get('f_list', $row['forum_id'])) { $subforums[$parent_id][] = $row; } -- cgit v1.2.1