From e0b033fa22afed528aed86cd7dabaf2198518e62 Mon Sep 17 00:00:00 2001 From: Cleopatra Enjeck M Date: Thu, 22 Aug 2024 09:50:50 +0100 Subject: [PATCH] fix: update context navigation display elements Signed-off-by: Cleopatra Enjeck M --- lib/Service/ShareService.php | 1 + src/modules/modals/CreateContext.vue | 8 +++--- src/modules/modals/EditContext.vue | 24 ++++++++++++++-- .../partials/NavigationContextItem.vue | 28 ++++++++++++------- src/shared/constants.js | 6 ++-- src/store/store.js | 4 +-- 6 files changed, 50 insertions(+), 21 deletions(-) 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 @@
- {{ t('tables', 'Navigation bar entry') }} + {{ t('tables', 'Navigation bar display') }}
- No navigation bar entry + Hide navigation entry for everybody - Navigation bar entry for share recipients, but not the owner + Show navigation entry for everybody, except me - Navigation bar entry for everybody + Show navigation entry for everybody
diff --git a/src/modules/modals/EditContext.vue b/src/modules/modals/EditContext.vue index 70d284b1a..18b3e28e7 100644 --- a/src/modules/modals/EditContext.vue +++ b/src/modules/modals/EditContext.vue @@ -35,7 +35,24 @@ - +
+
+ {{ t('tables', 'Navigation bar display') }} +
+ + Hide navigation entry for everybody + + + Show navigation entry for everybody, except me + + + Show navigation entry for everybody + +
+
@@ -59,7 +76,7 @@