From cdc96528424571fe831a8a91ee6097961699ad11 Mon Sep 17 00:00:00 2001 From: Bjorn Blomberg Date: Fri, 21 Aug 2026 22:54:16 +0200 Subject: [PATCH] =?UTF-8?q?fix(acl):=20d=C3=B6lj=20redigeringsknappen=20f?= =?UTF-8?q?=C3=B6r=20anv=C3=A4ndare=20utan=20edit-r=C3=A4ttighet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VisualEditors 'Börja redigera'-banner styrdes bara av internt state och visades för alla, även publika läs-användare. Ny editable-prop gate:ar bannern och tvingar läsläge när rättigheten saknas. SourceEditor får en readonly-prop (CodeMirror-Compartment) så Source-fliken inte längre är redigerbar utan rättighet. Versionsvyn är nu alltid read-only. Backend nekade redan save utan Edit/Create — detta var enbart ett UI-fel. Co-Authored-By: Claude Fable 5 --- frontend/src/components/editor/SourceEditor.vue | 11 ++++++++++- frontend/src/components/editor/VisualEditor.vue | 12 +++++++++--- frontend/src/views/DocumentView.vue | 6 ++++-- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/editor/SourceEditor.vue b/frontend/src/components/editor/SourceEditor.vue index 0a79452..a851729 100644 --- a/frontend/src/components/editor/SourceEditor.vue +++ b/frontend/src/components/editor/SourceEditor.vue @@ -1,14 +1,18 @@