code/SiteConfig.php
public function canCreateTopLevel($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

        if ($member && Permission::checkMember($member, "ADMIN")) {
            return true;
        }

        $extended = $this->extendedCan('canCreateTopLevel', $member);
        if ($extended !== null) {
            return $extended;
        }

        // check for any logged-in users with CMS permission
        if ($this->CanCreateTopLevelType === 'LoggedInUsers'
            && Permission::checkMember($member, $this->config()->get('required_permission'))
        ) {
            return true;
        }

        // check for specific groups
        if ($this->CanCreateTopLevelType === 'OnlyTheseUsers'
            && $member
            && $member->inGroups($this->CreateTopLevelGroups())
        ) {
            return true;
        }

        return false;
    }
public function canCreateTopLevel($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

        if ($member && Permission::checkMember($member, "ADMIN")) {
            return true;
        }

        $extended = $this->extendedCan('canCreateTopLevel', $member);
        if ($extended !== null) {
            return $extended;
        }

        // check for any logged-in users with CMS permission
        if ($this->CanCreateTopLevelType === 'LoggedInUsers'
            && Permission::checkMember($member, $this->config()->get('required_permission'))
        ) {
            return true;
        }

        // check for specific groups
        if ($this->CanCreateTopLevelType === 'OnlyTheseUsers'
            && $member
            && $member->inGroups($this->CreateTopLevelGroups())
        ) {
            return true;
        }

        return false;
    }
public function canCreateTopLevel ( $ member = null ) { if ( ! $ member ) { $ member = Security :: getCurrentUser ( ) ; } if ( $ member && Permission :: checkMember ( $ member , "ADMIN" ) ) { return true ; } $ extended = $ this -> extendedCan ( 'canCreateTopLevel' , $ member ) ; if ( $ extended !== null ) { return $ extended ; } // check for any logged-in users with CMS permission if ( $ this -> CanCreateTopLevelType === 'LoggedInUsers' && Permission :: checkMember ( $ member , $ this -> config ( ) -> get ( 'required_permission' ) ) ) { return true ; } // check for specific groups if ( $ this -> CanCreateTopLevelType === 'OnlyTheseUsers' && $ member && $ member -> inGroups ( $ this -> CreateTopLevelGroups ( ) ) ) { return true ; } return false ; }
Can a user create pages in the root of this site?

@param Member $member
@return boolean
Can a user create pages in the root of this site?