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 7:11pm

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

                                  well, probably I then remember wrong

                                    • reply
                                    • like

                                    not saying thta , I just do not see that magical attribute

                                      • reply
                                      • like

                                      anyway, I did test role API, and it did not set normal user to BoardAdmin

                                        • reply
                                        • like

                                        so there is something broken

                                          • reply
                                          • like

                                          So I'll look at wekan/models/boards.js

                                            • reply
                                            • like

                                            so question

                                              • reply
                                              • like

                                              If I create a board admin attribute

                                                • reply
                                                • like

                                                its would be a string or an array (multiple board admins)

                                                  • reply
                                                  • like