diff --git a/config/modules.json b/config/modules.json index 3ade3bc..8ea7308 100755 --- a/config/modules.json +++ b/config/modules.json @@ -3,7 +3,7 @@ "module": { "method": { "description": "Test de l'API", - "permissions": ["warehouse", "admin"], + "permissions": ["warehouse"], "parameters": {} }, diff --git a/manager/ORM/Table.php b/manager/ORM/Table.php index 5e31eac..995f129 100644 --- a/manager/ORM/Table.php +++ b/manager/ORM/Table.php @@ -129,4 +129,3 @@ // // // USE CASE :: select(FIELD1, FIELD2, ...) // mixed = ORM::Row->select('id_user', 'username'); -?> diff --git a/manager/module/machineDefault.php b/manager/module/machineDefault.php index 3d06efe..47b2a8c 100755 --- a/manager/module/machineDefault.php +++ b/manager/module/machineDefault.php @@ -331,7 +331,7 @@ =========================================================*/ $actionsReq = new Repo('action/getAll'); $actions = ($actionsReq->error==0) ? $actionsReq->answer() : []; - var_dump($actionsReq->answer()); + // var_dump($actionsReq->answer()); /* [2] On regroupe les actions par TIMEOUT =========================================================*/ diff --git a/manager/module/module.php b/manager/module/module.php index b3b8608..6f14264 100644 --- a/manager/module/module.php +++ b/manager/module/module.php @@ -9,11 +9,11 @@ /* PERMET DE TESTER L'API * */ - public static function method(){ + public static function method($params){ return [ 'ModuleError' => ManagerError::Success, - 'ReceivedArguments' => func_get_args() + 'ReceivedArguments' => $params ]; }