mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
A Worker's checkbox was gated behind the same canModifyCard/write check that also gates editing and deleting a checklist item, so it never drew a clickable box at all - the server's allow rule refused the write too. Give checking/unchecking its own, narrower capability (like the existing move/self-assign carve-out for cards, models/lib/workerCardWrite.js): a Worker may $set isFinished and nothing else on a checklist item (models/lib/workerChecklistItemToggle.js), enforced field by field in server/permissions/checklistItems.js. The client mirrors it with Utils.canCheckChecklistItem / the canCheckChecklistItem Blaze helper, so client/components/cards/checklists.jade now draws the checkbox under that helper while everything else on the row (title edit, drag handle, due-date edit, delete) still requires the full write capability. Thanks to mweiss237 and xet7 ! Fixes #3307,