Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / Bugs

add user api ignores admin true parameter in body

add user api ignores admin true parameter in body

Wekan/Bugs · April 9, 2020 at 10:29pm

add user api ignores admin true parameter in body

Wekan / Bugs · April 9, 2020 at 10:29pm

Create a board with an owner. Owner is a member with admin: true.

Add a member and as per api set action to add and isadmin to true. Added member is not an admin.

ie: that new member added does not get the icon permiiting archiving a board when you hover over the board.

If you look in mongo you see an array of the two users, under the key Members

The first item in that array is the one added to the board at board creation time as the owner and isadmin is set to true

The second member of the two element mongo array for that board is the added user and isadmin is set to false

in Both cases no comment and comment only and worker are all set as false

Load previous messages

April 10, 2020 at 6:52pm

{ "_id" : "6ymKB5c4sgiwpoWYP", "title" : "Stimulus III", "members" : [ { "userId" : "3bNniN3P6DMdi9ziT", "isAdmin" : true, "isActive" : true, "isNoComments" : false, "isCommentOnly" : false, "isWorker" : false }, { "userId" : "MvkLYjA9Gxk4QoBDc", "isAdmin" : true, "isActive" : true, "isNoComments" : false, "isCommentOnly" : false, "isWorker" : false } ], "permission" : "public", "color" : "wisteria", "slug" : "stimulus-iii", "archived" : false, "createdAt" : ISODate("2020-04-10T17:19:33.170Z"), "modifiedAt" : ISODate("2020-04-10T17:19:33.272Z"), "stars" : 0,

    • reply
    • like

    "labels" : [ { "color" : "green", "_id" : "Ej3Wxg", "name" : "" }, { "color" : "yellow", "_id" : "LpGxup", "name" : "" }, { "color" : "orange", "_id" : "PFm9GH", "name" : "" }, { "color" : "red", "_id" : "nQ5h9E", "name" : "" }, { "color" : "purple", "_id" : "3xvxDD", "name" : "" }, { "color" : "blue", "_id" : "JKqZoT", "name" : "" } ],

      • reply
      • like

      "subtasksDefaultBoardId" : null, "subtasksDefaultListId" : null, "dateSettingsDefaultBoardId" : null, "dateSettingsDefaultListId" : null, "allowsSubtasks" : false, "allowsAttachments" : false, "allowsChecklists" : false, "allowsComments" : false, "allowsDescriptionTitle" : true, "allowsDescriptionText" : true, "allowsActivities" : true, "allowsLabels" : true, "allowsAssignee" : false, "allowsMembers" : true, "allowsRequestedBy" : false, "allowsAssignedBy" : false, "allowsReceivedDate" : false, "allowsStartDate" : false, "allowsEndDate" : false, "allowsDueDate" : true, "presentParentTask" : "no-parent", "isOvertime" : false, "type" : "board" }

        • reply
        • like

        Hmm. Well, there is isBoardAdmin and isAdmin. Depends is user admin of board or Wekan.

          • reply
          • like

          I think only BoardAdmin can archive board, not Normal/CommentOnly/NoComments/Worker

            • reply
            • like

            Normally in Wekan web UI you can change each member to be BoardAdmin or some other permission

              • reply
              • like

              I need to test and figure out what you mean

                • reply
                • like

                If someone has Normal permission, and that user creates new board, that user is BoardAdmin of that board

                  • reply
                  • like

                  and can invite others and set permissions of that user

                    • reply
                    • like

                    and in Wekan API it's possible to change permissions

                      • reply
                      • like

                      where is the board admin stored?

                        • reply
                        • like

                        in members in boards

                          • reply
                          • like

                          or something else

                            • reply
                            • like

                            I do not mind troubleshooting

                              • reply
                              • like

                              I just did not see under boards any attribute like board admin

                                • reply
                                • like

                                must be in another collection

                                  • reply
                                  • like

                                  like under user?

                                    • reply
                                    • like

                                    LMK where to look

                                      • reply
                                      • like

                                      I can figure it out if I have a few breadcrumbs :)

                                        • reply
                                        • like

                                        I think BoardAdmin is at Boards collections, and Wekan Admin is at Users collection

                                          • reply
                                          • like

                                          and with wekan/find.sh it's possible to search like ./find.sh isBoardAdmin

                                            • reply
                                            • like

                                            I do not see boardadmin in boards collections

                                              • reply
                                              • like

                                              looking at all the records for boards

                                                • reply
                                                • like

                                                YET

                                                  • reply
                                                  • like

                                                  the owner does have that abaility

                                                    • reply
                                                    • like