mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 05:57:13 -04: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) {
|
||||
Authentication.checkUserId( req.userId);
|
||||
const paramBoardId = req.params.boardId;
|
||||
const paramListId = req.params.listId;
|
||||
Authentication.checkBoardAccess( req.userId, paramBoardId);
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: Lists.findOne({ _id: paramListId, boardId: paramBoardId, archived: false }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue