커맨드 유효성을 2개에서 3개구성으로 변경

This commit is contained in:
2020-05-04 19:51:11 +09:00
parent f25f5008f1
commit 77248ad4d8
100 changed files with 4124 additions and 3420 deletions
+4 -3
View File
@@ -9,7 +9,8 @@ $commandType = Util::getReq('command', 'string');
$turnList = array_map('intval', explode('_', Util::getReq('turnList', 'string', '0')));
$isChiefTurn = Util::getReq('is_chief', 'bool', false);
function die_redirect(){
function die_redirect()
{
global $isChiefTurn;
if(!$isChiefTurn){
header('location:index.php', true, 303);
@@ -59,9 +60,9 @@ if($commandObj->isArgValid()){
die_redirect();
}
/*if(!$commandObj->isReservable()){
if(!$commandObj->hasPermissionToReserve()){
die_redirect();
}*/
}
$jsList = $commandObj->getJSFiles();
$cssList = $commandObj->getCSSFiles();