mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 160 admin menu not allow delete
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9160 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0d530d08e0
commit
c776afd76e
2 changed files with 11 additions and 0 deletions
|
|
@ -66,6 +66,13 @@
|
|||
**/
|
||||
function procMenuAdminDelete() {
|
||||
$menu_srl = Context::get('menu_srl');
|
||||
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$menu_info = $oMenuAdminModel->getMenu($menu_srl);
|
||||
|
||||
if($menu_info->title == '__XE_ADMIN__')
|
||||
return new Object(-1, 'msg_adminmenu_cannot_delete');
|
||||
|
||||
$this->deleteMenu($menu_srl);
|
||||
|
||||
$this->setMessage('success_deleted', 'info');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue