Unable to create a board with no admin #2

Open
opened 2019-11-10 13:14:01 +00:00 by norangebit · 0 comments
Owner

The server does not allow you to create a board without admin (rightly).
The API documentation provides flags that should allow it, but have no effect.

The current implementation replicates the API documentation, so in theory it would be possible to create a board without admin, but in practice the server ignores this flag and still assigns the user the role of admin.

You can see that it is an inconsistent API and not an implementation problem through the following snippet.

curl -H "Content-type: application/json" \
-H 'Accept: application/json'\
-H 'Authorization: Bearer <token>'\
<server url>/api/boards\
-d '{ "title": "board without admin", "owner": "<user id>", "isAdmin": false, "isCommentOnly": true }'

See.

The server does not allow you to create a board without admin (rightly). The API documentation provides flags that should allow it, but have no effect. The current implementation replicates the API documentation, so in theory it would be possible to create a board without admin, but in practice the server ignores this flag and still assigns the user the role of admin. You can see that it is an inconsistent API and not an implementation problem through the following snippet. ``` curl -H "Content-type: application/json" \ -H 'Accept: application/json'\ -H 'Authorization: Bearer <token>'\ <server url>/api/boards\ -d '{ "title": "board without admin", "owner": "<user id>", "isAdmin": false, "isCommentOnly": true }' ``` [See](https://wekan.github.io/api/v3.50/#new_board).
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kanban/wedroid#2
No description provided.