From 541667f440b245535354febd18930a87c2bbbefb Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Wed, 26 Feb 2003 19:53:10 +0000 Subject: some changes... mainly permission related. Please note the intval($forum_id) at viewtopic, somehow the auth class did not identified it while generating the forum rules. git-svn-id: file:///svn/phpbb/trunk@3553 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 5db02b774a..3f01b8a024 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -195,7 +195,7 @@ function gen_forum_rules($mode, &$forum_id) foreach ($rules as $rule) { $template->assign_block_vars('rules', array( - 'RULE' => ($auth->acl_gets('f_' . $rule, 'm_', 'a_', $forum_id)) ? $user->lang['RULES_' . strtoupper($rule) . '_CAN'] : $user->lang['RULES_' . strtoupper($rule) . '_CANNOT']) + 'RULE' => ($auth->acl_gets('f_' . $rule, 'm_', 'a_', intval($forum_id))) ? $user->lang['RULES_' . strtoupper($rule) . '_CAN'] : $user->lang['RULES_' . strtoupper($rule) . '_CANNOT']) ); } -- cgit v1.2.1