aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-07-12 07:08:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-07-12 07:08:21 +0000
commitf27d0c466e54e95aa1400e0435b78a8f7465256f (patch)
tree9e71b45fb9089a9b18d007cd0ed1ace40de46f73 /phpBB/viewtopic.php
parent49cc38ebba21dc8b26240a87a23f1d422dd74472 (diff)
downloadforums-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/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 2f6aac1fc6..6d21041e8a 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -581,8 +581,8 @@ $template->assign_vars(array(
'U_BOOKMARK_TOPIC' => ($user->data['is_registered'] && $config['allow_bookmarks']) ? $viewtopic_url . '&amp;bookmark=1' : '',
'L_BOOKMARK_TOPIC' => ($user->data['is_registered'] && $config['allow_bookmarks'] && $topic_data['bookmarked']) ? $user->lang['BOOKMARK_TOPIC_REMOVE'] : $user->lang['BOOKMARK_TOPIC'],
- 'U_POST_NEW_TOPIC' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=post&amp;f=$forum_id"),
- 'U_POST_REPLY_TOPIC' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=reply&amp;f=$forum_id&amp;t=$topic_id"),
+ 'U_POST_NEW_TOPIC' => ($auth->acl_get('f_post', $forum_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=post&amp;f=$forum_id") : '',
+ 'U_POST_REPLY_TOPIC' => ($auth->acl_get('f_reply', $forum_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=reply&amp;f=$forum_id&amp;t=$topic_id") : '',
'U_BUMP_TOPIC' => (bump_topic_allowed($forum_id, $topic_data['topic_bumped'], $topic_data['topic_last_post_time'], $topic_data['topic_poster'], $topic_data['topic_last_poster_id'])) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=bump&amp;f=$forum_id&amp;t=$topic_id") : '')
);