private function setupFilter($params)
    {
        $filter = array(
            'URLSegment' => Convert::raw2sql($params['ID']),
            'Live'       => 1,
        );
        if (Member::currentUserID() !== 0 && !Permission::checkMember(Member::currentUserID(), array('VIEW_NEWS', 'CMS_ACCESS_NewsAdmin'))) {
            $filter['Live'] = 0;
        }

        return $filter;
    }
private function setupFilter($params)
    {
        $filter = array(
            'URLSegment' => Convert::raw2sql($params['ID']),
            'Live'       => 1,
        );
        if (Member::currentUserID() !== 0 && !Permission::checkMember(Member::currentUserID(), array('VIEW_NEWS', 'CMS_ACCESS_NewsAdmin'))) {
            $filter['Live'] = 0;
        }

        return $filter;
    }
private function setupFilter ( $ params ) { $ filter = array ( 'URLSegment' => Convert :: raw2sql ( $ params [ 'ID' ] ) , 'Live' => 1 , ) ; if ( Member :: currentUserID ( ) !== 0 && ! Permission :: checkMember ( Member :: currentUserID ( ) , array ( 'VIEW_NEWS' , 'CMS_ACCESS_NewsAdmin' ) ) ) { $ filter [ 'Live' ] = 0 ; } return $ filter ; }
Setup the filter for the getters. This keeps in mind if the user is allowed to view this item.

@param String $params returntype setting.

@return array $filter filter for general getter.
Setup the filter for the getters . This keeps in mind if the user is allowed to view this item .