diff --git a/lib/Service/BoardService.php b/lib/Service/BoardService.php index f342b2850..0d0f32796 100644 --- a/lib/Service/BoardService.php +++ b/lib/Service/BoardService.php @@ -547,6 +547,10 @@ public function deleteAcl(int $id): ?Acl { public function clone($id, $userId) { $this->boardServiceValidator->check(compact('id', 'userId')); + if (!$this->permissionService->canCreate()) { + throw new NoPermissionException('Creating boards has been disabled for your account.'); + } + $this->permissionService->checkPermission($this->boardMapper, $id, Acl::PERMISSION_READ); $board = $this->boardMapper->find($id); diff --git a/src/components/navigation/AppNavigationBoard.vue b/src/components/navigation/AppNavigationBoard.vue index 45928f976..584dfb85d 100644 --- a/src/components/navigation/AppNavigationBoard.vue +++ b/src/components/navigation/AppNavigationBoard.vue @@ -46,7 +46,7 @@ @click="actionEdit"> {{ t('deck', 'Edit board') }} -