mirror of
https://github.com/wekan/wekan.git
synced 2026-02-13 03:34:20 +01:00
- REST API: Create board options to be modifiable, like
permissions, public/private board - now private by default, and board background color. Docs at https://github.com/wekan/wekan/wiki/REST-API-Boards Thanks to xet7 ! Related #1037
This commit is contained in:
parent
f346ce04f5
commit
9cea76e4ef
1 changed files with 6 additions and 6 deletions
|
|
@ -846,14 +846,14 @@ if (Meteor.isServer) {
|
||||||
members: [
|
members: [
|
||||||
{
|
{
|
||||||
userId: req.body.owner,
|
userId: req.body.owner,
|
||||||
isAdmin: true,
|
isAdmin: req.body.isAdmin || true,
|
||||||
isActive: true,
|
isActive: req.body.isActive || true,
|
||||||
isNoComments: false,
|
isNoComments: req.body.isNoComments || false,
|
||||||
isCommentOnly: false,
|
isCommentOnly: req.body.isCommentOnly || false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
permission: 'public',
|
permission: req.body.permission || 'private',
|
||||||
color: 'belize',
|
color: req.body.color || 'belize',
|
||||||
});
|
});
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
code: 200,
|
code: 200,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue