Skip to content

Commit

Permalink
stop giving a 401 error when not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed May 21, 2019
1 parent 5882c6b commit 0ca6613
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public-api/vx/node.php
Expand Up @@ -497,7 +497,11 @@
}
}
else {
json_EmitFatalError_Permission(null, $RESPONSE);
// This emits a 401 error that confuses some users
//json_EmitFatalError_Permission(null, $RESPONSE);

// To stop confusing people who look at the console, lets just say the un-logged in user has authored nothing
$RESPONSE['what'] = [];
}
break; //case 'what': //node/what

Expand Down

0 comments on commit 0ca6613

Please sign in to comment.