Hide contacts that are access (not display)
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 1 May 2018 17:34:12 +0000 (13:34 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 20 Jul 2018 14:48:38 +0000 (10:48 -0400)
If access of contact is 35 45 10 or 90 don't display.

models/front/contacts/list.php

index 9526280..53aa077 100644 (file)
@@ -181,7 +181,7 @@ class GlmMembersFront_contacts_list extends GlmDataContacts
             $memberName = $memberData['name'];
         }
 
-        $where = ' TRUE ';
+        $where = ' access NOT IN ( 35, 45, 10, 90 ) ';
 
         // Filter by selected county
         if (isset($_REQUEST['countySearch'])) {