(zettel (meta (back "00001012921200") (backward "00001006020000 00001010070300 00001012921200") (box-number "1") (created "20210126175322") (forward "00001004011400 00001006020000 00001006030500 00001010040100 00001010070300 00001014000000") (modified "20211124132040") (published "20211124132040") (role "manual") (syntax "zmk") (tags "#manual #meta #reference #zettel #zettelstore") (title "Supported values for metadata key ''read-only''")) (rights 4) (encoding "") (content "A zettel can be marked as read-only, if it contains a metadata value for key\n[[''read-only''|00001006020000#read-only]].\nIf user authentication is [[enabled|00001010040100]], it is possible to allow some users to change the zettel,\ndepending on their [[user role|00001010070300]].\nOtherwise, the read-only mark is just a binary value.\n\n=== No authentication\nIf there is no metadata value for key ''read-only'' or if its [[boolean value|00001006030500]]\nis interpreted as \"\"false\"\", anybody can modify the zettel.\n\nIf the metadata value is something else (the value \"\"true\"\" is recommended),\nthe user cannot modify the zettel through the [[web user interface|00001014000000]].\nHowever, if the zettel is stored as a file in a [[directory box|00001004011400]],\nthe zettel could be modified using an external editor.\n\n=== Authentication enabled\nIf there is no metadata value for key ''read-only'' or if its [[boolean value|00001006030500]]\nis interpreted as \"\"false\"\", anybody can modify the zettel.\n\nIf the metadata value is the same as an explicit [[user role|00001010070300]],\nusers with that role (or a role with lower rights) are not allowed to modify the zettel.\n\n; \"\"reader\"\"\n: Neither an unauthenticated user nor a user with role \"\"reader\"\" is allowed to modify the zettel.\n Users with role \"\"writer\"\" or the owner itself still can modify the zettel.\n; \"\"writer\"\"\n: Neither an unauthenticated user, nor users with roles \"\"reader\"\" or \"\"writer\"\" are allowed to modify the zettel.\n Only the owner of the Zettelstore can modify the zettel.\n\nIf the metadata value is something else (one of the values \"\"true\"\" or \"\"owner\"\" is recommended),\nno user is allowed modify the zettel through the [[web user interface|00001014000000]].\nHowever, if the zettel is accessible as a file in a [[directory box|00001004011400]],\nthe zettel could be modified using an external editor.\nTypically the owner of a Zettelstore have such an access."))