aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_post.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-06-04 16:30:58 +0000
committerNils Adermann <naderman@naderman.de>2006-06-04 16:30:58 +0000
commit5c181bc5289c54322d61dcc008e539f7c32e882b (patch)
tree440352ec19a1035388d00945da85a38731e04897 /phpBB/includes/mcp/mcp_post.php
parentf3499d12518c38082c2ecf60958e7336195a941b (diff)
downloadforums-5c181bc5289c54322d61dcc008e539f7c32e882b.tar
forums-5c181bc5289c54322d61dcc008e539f7c32e882b.tar.gz
forums-5c181bc5289c54322d61dcc008e539f7c32e882b.tar.bz2
forums-5c181bc5289c54322d61dcc008e539f7c32e882b.tar.xz
forums-5c181bc5289c54322d61dcc008e539f7c32e882b.zip
- permission trace correctly uses language variables now
- updated documentation for the auth class - use cache for "SELECT forum_name FROM phpbb_forums WHERE forum_id = X" queries everywhere and not only in functions_display - updated the permission trace to include information about global settings overwriting local ones - take global permissions into account for local permission results on the view permission pages for users - only allow to change the post author with m_chgposter git-svn-id: file:///svn/phpbb/trunk@6009 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_post.php')
-rw-r--r--phpBB/includes/mcp/mcp_post.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php
index f2fef8af6e..407314d494 100644
--- a/phpBB/includes/mcp/mcp_post.php
+++ b/phpBB/includes/mcp/mcp_post.php
@@ -74,7 +74,7 @@ function mcp_post_details($id, $mode, $action)
trigger_error($user->lang['NO_USER']);
}
- if ($auth->acl_get('m_', $post_info['forum_id']))
+ if ($auth->acl_get('m_chgposter', $post_info['forum_id']))
{
change_poster($post_info, $row);
}
@@ -104,14 +104,14 @@ function mcp_post_details($id, $mode, $action)
'U_APPROVE_ACTION' => "{$phpbb_root_path}mcp.$phpEx$SID&amp;i=queue&amp;p=$post_id",
'S_CAN_VIEWIP' => $auth->acl_get('m_info', $post_info['forum_id']),
- 'S_CAN_CHGPOSTER' => $auth->acl_get('m_', $post_info['forum_id']),
+ 'S_CAN_CHGPOSTER' => $auth->acl_get('m_chgposter', $post_info['forum_id']),
'S_CAN_LOCK_POST' => $auth->acl_get('m_lock', $post_info['forum_id']),
'S_CAN_DELETE_POST' => $auth->acl_get('m_delete', $post_info['forum_id']),
'S_POST_REPORTED' => ($post_info['post_reported']) ? true : false,
'S_POST_UNAPPROVED' => (!$post_info['post_approved']) ? true : false,
'S_POST_LOCKED' => ($post_info['post_edit_locked']) ? true : false,
- 'S_USER_NOTES' => ($auth->acl_gets('m_', 'a_')) ? true : false,
+ 'S_USER_NOTES' => true,
'S_CLEAR_ALLOWED' => ($auth->acl_get('a_clearlogs')) ? true : false,
'U_FIND_MEMBER' => "{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=searchuser&amp;form=mcp_chgposter&amp;field=username",