mirror of
https://github.com/wekan/wekan.git
synced 2026-02-25 17:34:07 +01:00
Modified access to GET /api/boards/:boardId/lists/:listId
This commit is contained in:
parent
066593f9c3
commit
cb99fc582e
1 changed files with 1 additions and 1 deletions
|
|
@ -147,9 +147,9 @@ if (Meteor.isServer) {
|
||||||
});
|
});
|
||||||
|
|
||||||
JsonRoutes.add('GET', '/api/boards/:boardId/lists/:listId', function (req, res, next) {
|
JsonRoutes.add('GET', '/api/boards/:boardId/lists/:listId', function (req, res, next) {
|
||||||
Authentication.checkUserId( req.userId);
|
|
||||||
const paramBoardId = req.params.boardId;
|
const paramBoardId = req.params.boardId;
|
||||||
const paramListId = req.params.listId;
|
const paramListId = req.params.listId;
|
||||||
|
Authentication.checkBoardAccess( req.userId, paramBoardId);
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
code: 200,
|
code: 200,
|
||||||
data: Lists.findOne({ _id: paramListId, boardId: paramBoardId, archived: false }),
|
data: Lists.findOne({ _id: paramListId, boardId: paramBoardId, archived: false }),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue