From 1a874ba79b62378010531470080dfb0a3a368c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sat, 25 Jan 2020 13:37:17 +0100 Subject: [PATCH] Make sure to respect board acls in the frontend all over the place MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- appinfo/routes.php | 2 +- src/components/Controls.vue | 8 +- src/components/board/Board.vue | 13 ++- src/components/board/BoardSidebar.vue | 8 +- src/components/board/SharingTabSidebar.vue | 30 +++++-- src/components/board/Stack.vue | 24 ++++-- src/components/board/TagsTabSidebar.vue | 13 ++- src/components/card/CardSidebar.vue | 9 +- src/components/cards/CardItem.vue | 9 +- .../navigation/AppNavigationBoard.vue | 86 ++++++++++--------- src/store/main.js | 19 +++- 11 files changed, 150 insertions(+), 71 deletions(-) diff --git a/appinfo/routes.php b/appinfo/routes.php index f08c28ff7..d815fa013 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -38,7 +38,7 @@ return [ ['name' => 'board#deleteUndo', 'url' => '/boards/{boardId}/deleteUndo', 'verb' => 'POST'], ['name' => 'board#getUserPermissions', 'url' => '/boards/{boardId}/permissions', 'verb' => 'GET'], ['name' => 'board#addAcl', 'url' => '/boards/{boardId}/acl', 'verb' => 'POST'], - ['name' => 'board#updateAcl', 'url' => '/boards/{boardId}/acl', 'verb' => 'PUT'], + ['name' => 'board#updateAcl', 'url' => '/boards/{boardId}/acl/{aclId}', 'verb' => 'PUT'], ['name' => 'board#deleteAcl', 'url' => '/boards/{boardId}/acl/{aclId}', 'verb' => 'DELETE'], ['name' => 'board#clone', 'url' => '/boards/{boardId}/clone', 'verb' => 'POST'], diff --git a/src/components/Controls.vue b/src/components/Controls.vue index d2da1a815..9a96e41a6 100644 --- a/src/components/Controls.vue +++ b/src/components/Controls.vue @@ -28,7 +28,7 @@

{{ board.title }}

-
+
@@ -77,7 +77,7 @@