concrete/controllers/single_page/dashboard/conversations/messages.php
protected function getDefaultMessageFilter()
    {
        $filter = 'all';
        $db = \Database::get();
        $count = $db->GetOne('select count(cpa.paID) from ConversationPermissionAssignments cpa
            inner join PermissionAccess pa on cpa.paID = pa.paID
            inner join ConversationPermissionAddMessageAccessList cpl on pa.paID = cpl.paID
            where paIsInUse = 1 and permission = "U"');
        if ($count > 0) {
            $filter = 'unapproved';
        }

        return $filter;
    }
protected function getDefaultMessageFilter()
    {
        $filter = 'all';
        $db = \Database::get();
        $count = $db->GetOne('select count(cpa.paID) from ConversationPermissionAssignments cpa
            inner join PermissionAccess pa on cpa.paID = pa.paID
            inner join ConversationPermissionAddMessageAccessList cpl on pa.paID = cpl.paID
            where paIsInUse = 1 and permission = "U"');
        if ($count > 0) {
            $filter = 'unapproved';
        }

        return $filter;
    }
protected function getDefaultMessageFilter ( ) { $ filter = 'all' ; $ db = \ Database :: get ( ) ; $ count = $ db -> GetOne ( 'select count(cpa.paID) from ConversationPermissionAssignments cpa
            inner join PermissionAccess pa on cpa.paID = pa.paID
            inner join ConversationPermissionAddMessageAccessList cpl on pa.paID = cpl.paID
            where paIsInUse = 1 and permission = "U"' ) ; if ( $ count > 0 ) { $ filter = 'unapproved' ; } return $ filter ; }
Returns default message filter for search interface. We default to all, UNLESS we have at least one access
entity that publishes its messages and has them be unapproved. If that's the case, then we default to unapproved.
Returns default message filter for search interface . We default to all UNLESS we have at least one access entity that publishes its messages and has them be unapproved . If that s the case then we default to unapproved .