fix(chapter-16): normalize shared-email access checks

↗ view on GitHub · Amal · 2026-05-24 · 08dd7159

Chapter: 16 - Consistent identity matching.

Plain-English map:
Lowercase emails before checking whether a user has shared access to a
project.

Why it matters:
People do not think of email case as meaningful. Access checks that disagree
with that expectation create confusing denials and uneven security behavior.

Principle:
Normalize identity fields before comparing them.

Precedent borrowed:
Upstream PR #79.

Upstream base: willchen96/mike@d39f580.
Original local commit: e740508.
Repository amal66/mike
Author Amal <mamalanand3@gmail.com>
Authored
Parents e3efabf0
Stats 1 file changed , +12 , -4
Part of API route modularization with validation and access guards

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-08dd7159.md from inside the repo you want the change in.

⬇ Download capture-commit-08dd7159.md