mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Disable editing layouts unless they have already been edited #2121
This commit is contained in:
parent
a266d39c2e
commit
3524c60435
7 changed files with 68 additions and 7 deletions
|
|
@ -236,6 +236,12 @@ class layoutAdminView extends layout
|
|||
// Error appears if there is no layout information is registered
|
||||
if(!$layout_info) return $this->dispLayoutAdminInstalledList();
|
||||
|
||||
// Prevent editing if the layout has not already been edited #2121
|
||||
if(!$layout_info->is_edited)
|
||||
{
|
||||
return new BaseObject(-1, 'layout.layout_editing_deprecated_p1');
|
||||
}
|
||||
|
||||
// Get Layout Code
|
||||
if($oLayoutModel->useDefaultLayout($layout_info->layout_srl))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue