Merge pull request #1767 from YJSoft/patch-5

Fix #1766 상위 메뉴를 자기 자신으로 설정할수 없도록 수정
This commit is contained in:
Kijin Sung 2021-08-07 17:15:59 +09:00 committed by GitHub
commit a4490e6709
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1460,6 +1460,7 @@ class menuAdminController extends menu
$target_item = $oMenuAdminModel->getMenuItemInfo($target_srl);
if($target_item->menu_item_srl != $target_srl) throw new Rhymix\Framework\Exceptions\InvalidRequest;
if($target_srl == $parent_srl) throw new Rhymix\Framework\Exceptions\InvalidRequest;
// Move the menu location(change the order menu appears)
if($mode == 'move')
{