Try to fix User API. Part 2.

Thanks to xet7 !

Fixes #4039
This commit is contained in:
Lauri Ojansivu 2023-01-13 22:14:39 +02:00
parent 8092f8be28
commit cc90291192

View file

@ -2046,7 +2046,7 @@ if (Meteor.isServer) {
*/
JsonRoutes.add('POST', '/api/boards', function(req, res) {
try {
Authentication.checkUserId(req.userId);
Authentication.checkLoggedIn(req.userId);
const id = Boards.insert({
title: req.body.title,
members: [