From e9e421084212072ce1e47cf278cce78a0b83d984 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Fri, 4 Sep 2020 15:22:48 -0600 Subject: [PATCH] Allow infinitely nested CmsObjects that may have been permitted to load previously through the filesystem continue to load. --- modules/cms/classes/CmsObject.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/cms/classes/CmsObject.php b/modules/cms/classes/CmsObject.php index 798a065a0..45a4d172a 100644 --- a/modules/cms/classes/CmsObject.php +++ b/modules/cms/classes/CmsObject.php @@ -36,6 +36,13 @@ class CmsObject extends HalcyonModel implements CmsObjectContract */ public $customMessages = []; + /** + * @var int The maximum allowed path nesting level. The default value is 2, + * meaning that files can only exist in the root directory, or in a + * subdirectory. Set to null if any level is allowed. + */ + protected $maxNesting = null; + /** * @var array The attributes that are mass assignable. */