mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 01:25:33 +02:00
[ticket/11424] Handle race condition properly for Quick-Mod Tools
PHPBB3-11424
This commit is contained in:
parent
088907fe8e
commit
6f56dc8568
@ -226,6 +226,31 @@ class mcp_main
|
||||
break;
|
||||
|
||||
default:
|
||||
if($quickmod)
|
||||
{
|
||||
switch($action)
|
||||
{
|
||||
case 'lock':
|
||||
case 'unlock':
|
||||
case 'make_announce':
|
||||
case 'make_sticky':
|
||||
case 'make_global':
|
||||
case 'make_normal':
|
||||
case 'make_onindex':
|
||||
case 'move':
|
||||
case 'fork':
|
||||
case 'delete_topic':
|
||||
trigger_error('TOPIC_NOT_EXIST');
|
||||
break;
|
||||
|
||||
case 'lock_post':
|
||||
case 'unlock_post':
|
||||
case 'delete_post':
|
||||
trigger_error('POST_NOT_EXIST');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
trigger_error('NO_MODE', E_USER_ERROR);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user