This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path00001006020400.zettel
30 lines (23 loc) · 1.94 KB
/
00001006020400.zettel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
title: Supported values for metadata key ''read-only''
role: manual
tags: #manual #meta #reference #zettel #zettelstore
syntax: zmk
A zettel can be marked as read-only, if it contains a metadata value for key [[''read-only''|00001006020000#read-only]].
If user authentication is [[enabled|00001010040100]], it is possible to allow some users to change the zettel, depending on their [[user role|00001010070300]].
Otherwise, the read-only mark is just a binary value.
=== No authentication
If there is no metadata value for key ''read-only'' or if its [[boolean value|00001006030000]] is interpreted as ""false"", anybody can modify the zettel.
If the metadata value is something else (the value ""true"" is recommended), the user cannot modify the zettel through the web interface.
However, if the zettel is stored as a file in a [[directory place|00001004011400]], the zettel could be modified using an external editor.
=== Authentication enabled
If there is no metadata value for key ''read-only'' or if its [[boolean value|00001006030000]] is interpreted as ""false"", anybody can modify the zettel.
If the metadata value is the same as an explicit [[user role|00001010070300]], user with that role (or below) are not allowed to modify the zettel.
; ''reader''
: Neither an unauthenticated user nor a user with role ""reader"" is allowed to modify the zettel.
Users with role ""writer"" or the owner itself still can modify the zettel.
; ''writer''
: Neither an unauthenticated user, nor users with roles ""reader"" or ""writer"" are allowed to modify the zettel.
Only the owner of the Zettelstore can modify the zettel.
If the metadata value is something else (the value ""owner"" is recommended), no user is allowed modify the zettel through the web interface.
However, if the zettel is accessible as a file in a [[directory place|00001004011400]], the zettel could be modified using an external editor.
Typically the owner of a Zettelstore should have such an access.