diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-07-12 07:08:21 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-07-12 07:08:21 +0000 |
commit | f27d0c466e54e95aa1400e0435b78a8f7465256f (patch) | |
tree | 9e71b45fb9089a9b18d007cd0ed1ace40de46f73 /phpBB/viewforum.php | |
parent | 49cc38ebba21dc8b26240a87a23f1d422dd74472 (diff) | |
download | forums-f27d0c466e54e95aa1400e0435b78a8f7465256f.tar forums-f27d0c466e54e95aa1400e0435b78a8f7465256f.tar.gz forums-f27d0c466e54e95aa1400e0435b78a8f7465256f.tar.bz2 forums-f27d0c466e54e95aa1400e0435b78a8f7465256f.tar.xz forums-f27d0c466e54e95aa1400e0435b78a8f7465256f.zip |
basically what is listed within the changelog. ;)
git-svn-id: file:///svn/phpbb/trunk@7872 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r-- | phpBB/viewforum.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index e2fbc1db40..7884896a9f 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -275,7 +275,7 @@ $template->assign_vars(array( 'L_NO_TOPICS' => ($forum_data['forum_status'] == ITEM_LOCKED) ? $user->lang['POST_FORUM_LOCKED'] : $user->lang['NO_TOPICS'], - 'S_IS_POSTABLE' => ($forum_data['forum_type'] == FORUM_POST) ? true : false, + 'S_IS_POSTABLE' => ($forum_data['forum_type'] == FORUM_POST && $auth->acl_get('f_post', $forum_id)) ? true : false, 'S_DISPLAY_ACTIVE' => $s_display_active, 'S_SELECT_SORT_DIR' => $s_sort_dir, 'S_SELECT_SORT_KEY' => $s_sort_key, @@ -290,7 +290,7 @@ $template->assign_vars(array( 'S_SINGLE_MODERATOR' => (!empty($moderators[$forum_id]) && sizeof($moderators[$forum_id]) > 1) ? false : true, 'U_MCP' => ($auth->acl_get('m_', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "f=$forum_id&i=main&mode=forum_view", true, $user->session_id) : '', - 'U_POST_NEW_TOPIC' => append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=post&f=' . $forum_id), + 'U_POST_NEW_TOPIC' => ($auth->acl_get('f_post', $forum_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=post&f=' . $forum_id) : '', 'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id&$u_sort_param&start=$start"), 'U_MARK_TOPICS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id&mark=topics") : '', )); |