From 3800f65cee0d3a1f38305dd4004e7e3a074e4757 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 9 Sep 2016 11:02:56 +0200 Subject: [PATCH] minmod --- config/modules.json | 2 +- manager/ORM/Table.php | 1 - manager/module/machineDefault.php | 2 +- manager/module/module.php | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) 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 ]; }