Browse Source

Try to fix User API. Part 2.

Thanks to xet7 !

Fixes #4039
Lauri Ojansivu 2 years ago
parent
commit
cc90291192
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/boards.js

+ 1 - 1
models/boards.js

@@ -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: [