Selaa lähdekoodia

Changed /api/user/boards to only check if the user is logged in

mayjs 8 vuotta sitten
vanhempi
sitoutus
452901d3b1
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      models/boards.js

+ 1 - 1
models/boards.js

@@ -558,7 +558,7 @@ if (Meteor.isServer) {
 if (Meteor.isServer) {
 if (Meteor.isServer) {
   JsonRoutes.add('GET', '/api/user/boards', function (req, res, next) {
   JsonRoutes.add('GET', '/api/user/boards', function (req, res, next) {
     // TODO: This should be changed to be less restrictive!
     // TODO: This should be changed to be less restrictive!
-    Authentication.checkUserId(req.userId);
+    Authentication.checkLoggedIn(req.userId);
 
 
     const data = Boards.find({
     const data = Boards.find({
         archived: false,
         archived: false,