diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php index a6b7a2030..a34a1b4d5 100644 --- a/lib/Service/ShareService.php +++ b/lib/Service/ShareService.php @@ -334,6 +334,7 @@ public function updateDisplayMode(int $shareId, int $displayMode, string $userId } } else { // setting user display mode override only requires access + // this does not seem to work if (!$this->permissionsService->canAccessContextById($item->getId())) { throw new PermissionError(sprintf('PermissionError: can not update share with id %d', $shareId)); } diff --git a/src/modules/modals/CreateContext.vue b/src/modules/modals/CreateContext.vue index 1d5571c72..3c5e695c9 100644 --- a/src/modules/modals/CreateContext.vue +++ b/src/modules/modals/CreateContext.vue @@ -41,19 +41,19 @@