mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-02-22 16:11:14 -08:00
Fix two code typos
This commit is contained in:
parent
adfd65dae2
commit
620116a0b4
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +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"),
|
||||
read_only: !state.server.isAuthorized("writers",state.authenticatedUsername),
|
||||
space: {
|
||||
recipe: "default"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ Server.prototype.requestHandler = function(request,response) {
|
|||
return;
|
||||
}
|
||||
// Authorize with the authenticated username
|
||||
if(this.isAuthorized(authorizationType,state.authenticatedUsername)) {
|
||||
if(!this.isAuthorized(authorizationType,state.authenticatedUsername)) {
|
||||
response.writeHead(401,"'" + state.authenticatedUsername + "' is not authorized to access '" + this.servername + "'");
|
||||
response.end();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue