diff --git a/application/WarehouseArticle/WarehouseArticleController.php b/application/WarehouseArticle/WarehouseArticleController.php index cfee60901..c80214bfd 100644 --- a/application/WarehouseArticle/WarehouseArticleController.php +++ b/application/WarehouseArticle/WarehouseArticleController.php @@ -53,11 +53,11 @@ class WarehouseArticleController extends TTCrud { $this->additionalJSVariables['WAREHOUSE_ADMIN'] = false; } - protected function beforeCreate() { + protected function beforeCreate($postData): bool { if (!in_array($this->user->id, [2, 5, 6, 145, 14])) self::sendError("Sie haben keine Berechtigung, Artikel zu erstellen."); - $this->validateArticleNumber($_POST); + $this->validateArticleNumber($postData); return true; }