mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 23:55:26 +02:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10377] Do not allow all moderators to sticky posts
This commit is contained in:
commit
95fed7806d
@ -286,14 +286,6 @@ function change_topic_type($action, $topic_ids)
|
|||||||
{
|
{
|
||||||
global $auth, $user, $db, $phpEx, $phpbb_root_path;
|
global $auth, $user, $db, $phpEx, $phpbb_root_path;
|
||||||
|
|
||||||
// For changing topic types, we only allow operations in one forum.
|
|
||||||
$forum_id = check_ids($topic_ids, TOPICS_TABLE, 'topic_id', array('f_announce', 'f_sticky', 'm_'), true);
|
|
||||||
|
|
||||||
if ($forum_id === false)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ($action)
|
switch ($action)
|
||||||
{
|
{
|
||||||
case 'make_announce':
|
case 'make_announce':
|
||||||
@ -316,11 +308,18 @@ function change_topic_type($action, $topic_ids)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
$new_topic_type = POST_NORMAL;
|
$new_topic_type = POST_NORMAL;
|
||||||
$check_acl = '';
|
$check_acl = false;
|
||||||
$l_new_type = (sizeof($topic_ids) == 1) ? 'MCP_MAKE_NORMAL' : 'MCP_MAKE_NORMALS';
|
$l_new_type = (sizeof($topic_ids) == 1) ? 'MCP_MAKE_NORMAL' : 'MCP_MAKE_NORMALS';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$forum_id = check_ids($topic_ids, TOPICS_TABLE, 'topic_id', $check_acl, true);
|
||||||
|
|
||||||
|
if ($forum_id === false)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$redirect = request_var('redirect', build_url(array('action', 'quickmod')));
|
$redirect = request_var('redirect', build_url(array('action', 'quickmod')));
|
||||||
|
|
||||||
$s_hidden_fields = array(
|
$s_hidden_fields = array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user