public function updateFrontEndFields(FieldList $fields)
    {
        if (!$this->owner->ID) {
            $fields->replaceField('InheritPerms', new CheckboxField('InheritPerms', _t('Restrictable.INHERIT_PERMS', 'Inherit Permissions'), true));
        }
        
        $ownerField = $fields->fieldByName('OwnerID');
        if ($ownerField) {
            $members = singleton('DataService')->getAllMember();
            $source = array();
            if ($members) {
                $source = $members->map();
            }
            if (method_exists($ownerField, 'setSource')) {
                $ownerField->setSource($source);
            }
        }
    }
public function updateFrontEndFields(FieldList $fields)
    {
        if (!$this->owner->ID) {
            $fields->replaceField('InheritPerms', new CheckboxField('InheritPerms', _t('Restrictable.INHERIT_PERMS', 'Inherit Permissions'), true));
        }
        
        $ownerField = $fields->fieldByName('OwnerID');
        if ($ownerField) {
            $members = singleton('DataService')->getAllMember();
            $source = array();
            if ($members) {
                $source = $members->map();
            }
            if (method_exists($ownerField, 'setSource')) {
                $ownerField->setSource($source);
            }
        }
    }
public function updateFrontEndFields ( FieldList $ fields ) { if ( ! $ this -> owner -> ID ) { $ fields -> replaceField ( 'InheritPerms' , new CheckboxField ( 'InheritPerms' , _t ( 'Restrictable.INHERIT_PERMS' , 'Inherit Permissions' ) , true ) ) ; } $ ownerField = $ fields -> fieldByName ( 'OwnerID' ) ; if ( $ ownerField ) { $ members = singleton ( 'DataService' ) -> getAllMember ( ) ; $ source = array ( ) ; if ( $ members ) { $ source = $ members -> map ( ) ; } if ( method_exists ( $ ownerField , 'setSource' ) ) { $ ownerField -> setSource ( $ source ) ; } } }
Set default for inherit

@param FieldSet $fields
Set default for inherit