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