Code Duplication    Length = 3-3 lines in 2 locations

code/Controllers/CMSMain.php 2 locations

@@ 2003-2005 (lines=3) @@
2000
        if (($id = $this->urlParams['ID']) && is_numeric($id)) {
2001
            /** @var SiteTree $page */
2002
            $page = SiteTree::get()->byID($id);
2003
            if ($page && (!$page->canEdit() || !$page->canCreate(null, array('Parent' => $page->Parent())))) {
2004
                return Security::permissionFailure($this);
2005
            }
2006
            if (!$page || !$page->ID) {
2007
                throw new HTTPResponse_Exception("Bad record ID #$id", 404);
2008
            }
@@ 2047-2049 (lines=3) @@
2044
        if (($id = $this->urlParams['ID']) && is_numeric($id)) {
2045
            /** @var SiteTree $page */
2046
            $page = SiteTree::get()->byID($id);
2047
            if ($page && (!$page->canEdit() || !$page->canCreate(null, array('Parent' => $page->Parent())))) {
2048
                return Security::permissionFailure($this);
2049
            }
2050
            if (!$page || !$page->ID) {
2051
                throw new HTTPResponse_Exception("Bad record ID #$id", 404);
2052
            }