DataObjects/Groups.php
authoredward <edward@roojs.com>
Mon, 18 Jul 2016 07:07:25 +0000 (15:07 +0800)
committeredward <edward@roojs.com>
Mon, 18 Jul 2016 07:07:25 +0000 (15:07 +0800)
DataObjects/Groups.php

index 2efc94a..4db0364 100755 (executable)
@@ -140,6 +140,9 @@ class Pman_Core_DataObjects_Groups extends DB_DataObject
     
     function postListFilter($ar, $au, $req)
     {      
+        if(!empty($req['_not_add_others'])){
+            return $ar;
+        }
         
         $ret[] = array( 'id' => 0, 'name' => 'EVERYONE');
         $ret[] = array( 'id' => -1, 'name' => 'NOT_IN_GROUP');