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 16, 2020 at 5:31pm

I made the owner the user member and I swapped that and made the former owner a member. THe former Owner is the FIRST admin that is created when you first install wekan. And even though the isAdmin true is set in the user collections and the board collections there is somethin special about that first admin

    • reply
    • like

    and as I expected the owner of a board has full deletion rights

      • reply
      • like

      so when you make the system first admin just a member and you make a regular user isAdmin true in both collects the owner.....

        • reply
        • like

        BOTH can delete archive and then both can see the archived boards and restore them or delete them

          • reply
          • like

          I have no idea why the first admin has extended rights. but this is what is happening. I tested back and forth. creating a new board/swimlane/member/list/card set through the api and then using the gui going back with two browsers each logged in as the two users

            • reply
            • like

            What I do not understand is where in Mongo (or other) that those distinctions are saved (that the board owner is special,) (that the first admin in the system is special)

              • reply
              • like

              April 16, 2020 at 7:22pm

              I created issue/bounty about adding granular roles https://github.com/wekan/wekan/issues/3022

                • reply
                • like

                April 17, 2020 at 5:20pm

                It seems that Keelan will be adding something to API https://github.com/wekan/wekan/issues/2096

                  • reply
                  • like