Quellcode durchsuchen

added Storage create simple process for StorageAcl

Piotr Labudda vor 8 Jahren
Ursprung
Commit
097ca5b3f4
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      SE/se-lib/Route/Storage.php

+ 5 - 1
SE/se-lib/Route/Storage.php

@@ -434,7 +434,11 @@ class Route_Storage extends RouteBase {
 		if (!$item['idZasob']) throw new Exception("Missing id zasob for object '{$namespace}'");
 		if (!$item['idDatabase']) throw new Exception("Missing id database for object '{$namespace}'");
 		if (!$item['_rootTableName']) throw new Exception("Missing root table name for object '{$namespace}'");
-		if ('AntAcl' != $item['_type']) throw new Exception("Not implemented type '{$item['_type']}' for namespace '{$namespace}' - only AntAcl supported");
+		switch ($item['_type']) {
+			case 'AntAcl': break; // OK
+			case 'StorageAcl': break; // OK
+			default: throw new Exception("Not implemented type '{$item['_type']}' for namespace '{$namespace}' - only AntAcl supported");
+		}
 		if (!$item['hasStruct']) throw new Exception("Missing structure for object '{$namespace}'");
 		if (!$item['isStructInstalled']) throw new Exception("Structure not installed for object '{$namespace}'");
 		if (!$item['isObjectActive']) throw new Exception("Object is not active '{$namespace}'");