mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 17:00:13 +01:00
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
This commit is contained in:
parent
5af18809a7
commit
164b6e9070
2 changed files with 0 additions and 3 deletions
|
|
@ -586,7 +586,6 @@ if (Meteor.isServer) {
|
||||||
function(req, res) {
|
function(req, res) {
|
||||||
const paramBoardId = req.params.boardId;
|
const paramBoardId = req.params.boardId;
|
||||||
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
||||||
const paramBoardId = req.params.boardId;
|
|
||||||
const id = req.params.customFieldId;
|
const id = req.params.customFieldId;
|
||||||
CustomFields.remove({ _id: id, boardIds: { $in: [paramBoardId] } });
|
CustomFields.remove({ _id: id, boardIds: { $in: [paramBoardId] } });
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
|
|
|
||||||
|
|
@ -533,7 +533,6 @@ if (Meteor.isServer) {
|
||||||
try {
|
try {
|
||||||
const paramBoardId = req.params.boardId;
|
const paramBoardId = req.params.boardId;
|
||||||
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
||||||
const paramBoardId = req.params.boardId;
|
|
||||||
const board = Boards.findOne(paramBoardId);
|
const board = Boards.findOne(paramBoardId);
|
||||||
const id = Lists.insert({
|
const id = Lists.insert({
|
||||||
title: req.body.title,
|
title: req.body.title,
|
||||||
|
|
@ -572,7 +571,6 @@ if (Meteor.isServer) {
|
||||||
try {
|
try {
|
||||||
const paramBoardId = req.params.boardId;
|
const paramBoardId = req.params.boardId;
|
||||||
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
||||||
const paramBoardId = req.params.boardId;
|
|
||||||
const paramListId = req.params.listId;
|
const paramListId = req.params.listId;
|
||||||
Lists.remove({ _id: paramListId, boardId: paramBoardId });
|
Lists.remove({ _id: paramListId, boardId: paramBoardId });
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue