Modified access to GET /api/boards/:boardId/lists

reviewable/pr1041/r2
mayjs 8 years ago
parent 1e8d9f02f3
commit 066593f9c3
  1. 3
      models/lists.js

@ -132,8 +132,9 @@ if (Meteor.isServer) {
//LISTS REST API
if (Meteor.isServer) {
JsonRoutes.add('GET', '/api/boards/:boardId/lists', function (req, res, next) {
Authentication.checkUserId( req.userId);
const paramBoardId = req.params.boardId;
Authentication.checkBoardAccess( req.userId, paramBoardId);
JsonRoutes.sendResult(res, {
code: 200,
data: Lists.find({ boardId: paramBoardId, archived: false }).map(function (doc) {

Loading…
Cancel
Save