1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-12 07:46:06 +00:00

Return read_only status in /status response

This commit is contained in:
Jermolene
2018-06-27 10:24:32 +01:00
parent 687eae333d
commit adfd65dae2

View File

@@ -20,6 +20,7 @@ exports.handler = function(request,response,state) {
response.writeHead(200, {"Content-Type": "application/json"});
var text = JSON.stringify({
username: state.authenticatedUsername || state.server.get("username") || "",
read_only: !state.server.isAuthorized("writers"),
space: {
recipe: "default"
},