mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 20:45:07 -05:00
Read-only / comment-only board members could still drag-reorder lists because one of the three jQuery-UI list sortables in swimlanes.js was not gated on Utils.canModifyBoard() (the other two already were). The drag fired a server write that allow/deny rejected with `403 Access denied` (reason: 'Access denied'), so the list snapped back and the console showed the error — matching the #5462 report. - Add the missing `disabled: !Utils.canModifyBoard()` to the third sortable, consistent with the other two. - Add a defense-in-depth guard at the top of saveSorting() so a logged-in user without write access can never persist a reorder; anonymous public-board reordering via localStorage is unaffected. - Add a Playwright regression spec (specs/35-list-sort-permissions.e2e.js) that verifies over DDP: a read-only member is denied via both updateListSort and a direct collection write (the exact 403), the stored order is unchanged, and a write-access member's reorder persists (also guards #5997 persistence). - Update CHANGELOG upcoming. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>