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:
@@ -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"
|
||||
},
|
||||
|
Reference in New Issue
Block a user