Quellcode durchsuchen

added support for featureID in AccessGruop

Piotr Labudda vor 9 Jahren
Ursprung
Commit
83502c5e72
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      SE/se-lib/Schema/AccessGroupStorageAcl.php

+ 4 - 0
SE/se-lib/Schema/AccessGroupStorageAcl.php

@@ -55,6 +55,10 @@ class Schema_AccessGroupStorageAcl extends Core_AclBase {// Read only class
       }
     }
   }
+    if ($pk = V::get('primaryKey', '', $params, 'int')) {// [primaryKey] => 2948
+      if (!array_key_exists($pk, $items)) return array();
+      return array($pk => $items[$pk]);
+    }
     if($DBG>2){echo 'C.'.get_class($this).' L.' . __LINE__ . " getItems \$items:";print_r($items);echo "\n";}
     return $items;
   }