mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
setBoardOrgs and setBoardTeams refused nothing but non-admins: a board admin could link any organization or team of the instance to a board, and with it give every one of its members the board. Now an organization or team that is new to the board must be one the board admin belongs to; a site administrator may add any. Links already on the board stay - somebody else may have added them - and removing or switching one off is always allowed. The pickers offer only the admin's own groups, and the org and team publications, which gave non-admins nothing (so the pickers were empty for them), now give a signed-in user their own groups' names. models/lib/boardGroupLinks.js decides; tests/boardGroupLinks.test.cjs covers own groups, existing links, removals, site admins, a foreign group refused and not offered, and that both methods check before writing. Thanks to chrisi51 and xet7 ! Fixes #5141.