Kaynağa Gözat

Part 2: Allow board members to use more of API. Please add issue (or pull request) if this allows too much.

Thanks to JayVii and xet7 !

Fixes #3862
Lauri Ojansivu 4 yıl önce
ebeveyn
işleme
164b6e9070
2 değiştirilmiş dosya ile 0 ekleme ve 3 silme
  1. 0 1
      models/customFields.js
  2. 0 2
      models/lists.js

+ 0 - 1
models/customFields.js

@@ -586,7 +586,6 @@ if (Meteor.isServer) {
     function(req, res) {
       const paramBoardId = req.params.boardId;
       Authentication.checkBoardAccess(req.userId, paramBoardId);
-      const paramBoardId = req.params.boardId;
       const id = req.params.customFieldId;
       CustomFields.remove({ _id: id, boardIds: { $in: [paramBoardId] } });
       JsonRoutes.sendResult(res, {

+ 0 - 2
models/lists.js

@@ -533,7 +533,6 @@ if (Meteor.isServer) {
     try {
       const paramBoardId = req.params.boardId;
       Authentication.checkBoardAccess(req.userId, paramBoardId);
-      const paramBoardId = req.params.boardId;
       const board = Boards.findOne(paramBoardId);
       const id = Lists.insert({
         title: req.body.title,
@@ -572,7 +571,6 @@ if (Meteor.isServer) {
     try {
       const paramBoardId = req.params.boardId;
       Authentication.checkBoardAccess(req.userId, paramBoardId);
-      const paramBoardId = req.params.boardId;
       const paramListId = req.params.listId;
       Lists.remove({ _id: paramListId, boardId: paramBoardId });
       JsonRoutes.sendResult(res, {