From 9312baa3b079ccac329fadcbe977eecfc9c1993e Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 8 Jul 2016 04:46:28 -0300 Subject: [PATCH] Ivan - Fix master phpunit build: Add validations to comment --- server/controllers/ticket/comment.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/controllers/ticket/comment.php b/server/controllers/ticket/comment.php index 3854c86f..f1a82231 100644 --- a/server/controllers/ticket/comment.php +++ b/server/controllers/ticket/comment.php @@ -7,6 +7,13 @@ class CommentController extends Controller { private $ticketId; private $content; + public function validations() { + return [ + 'permission' => 'any', + 'requestData' => [] + ]; + } + public function handler() { $this->requestData(); $this->storeComment();