mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Renouncing a Guardian grant read the grant before taking the managed record's lock. When the Guardian's own account deletion held the lock first and ended the grant, the count under the lock then refused with "add another Guardian" for a grant that was no longer active. The grant is now re-read under the lock, so the renunciation answers that it has already ended (or is gone) instead. The race test accepts the already-ended answer beside 200 and 404, since which side wins depends only on timing.