From 313bbca4626fb81fa99a80dcf64df0e626c84d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 21 Jun 2018 11:44:45 +0200 Subject: [PATCH] Add proper controller method annotations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Controller/AttachmentController.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/Controller/AttachmentController.php b/lib/Controller/AttachmentController.php index 103888781..ea31f194a 100644 --- a/lib/Controller/AttachmentController.php +++ b/lib/Controller/AttachmentController.php @@ -38,6 +38,9 @@ class AttachmentController extends Controller { $this->attachmentService = $attachmentService; } + /** + * @NoAdminRequired + */ public function getAll($cardId) { return $this->attachmentService->findAll($cardId); } @@ -46,6 +49,7 @@ class AttachmentController extends Controller { * @param $cardId * @param $attachmentId * @NoCSRFRequired + * @NoAdminRequired * @return \OCP\AppFramework\Http\Response * @throws \OCA\Deck\NotFoundException */ @@ -53,6 +57,9 @@ class AttachmentController extends Controller { return $this->attachmentService->display($cardId, $attachmentId); } + /** + * @NoAdminRequired + */ public function create($cardId) { return $this->attachmentService->create( $cardId, @@ -61,14 +68,23 @@ class AttachmentController extends Controller { ); } + /** + * @NoAdminRequired + */ public function update($cardId, $attachmentId) { return $this->attachmentService->update($cardId, $attachmentId, $this->request->getParam('data')); } + /** + * @NoAdminRequired + */ public function delete($cardId, $attachmentId) { return $this->attachmentService->delete($cardId, $attachmentId); } + /** + * @NoAdminRequired + */ public function restore($cardId, $attachmentId) { return $this->attachmentService->restore($cardId, $attachmentId); }