Skip to content

fix: Allow organization members to edit buildable firmware files#904

Merged
yoichiro merged 1 commit intomainfrom
fix/firestore-rules-build-permission
Feb 12, 2026
Merged

fix: Allow organization members to edit buildable firmware files#904
yoichiro merged 1 commit intomainfrom
fix/firestore-rules-build-permission

Conversation

@yoichiro
Copy link
Collaborator

This PR fixes a Firestore permission error that occurs when an organization member tries to edit source code in the build functionality.

Changes

  • Move authorization-related functions (isAuthor, isOrganizationAuthor, etc.) to a global scope in firestore.rules.
  • Update the rules for /build/v1/firmwares/ to use the isAuthor function, allowing organization members who are part of the owner organization to edit and manage buildable firmware files.
  • Fix the update rule for /build/v1/firmwares/{definitionId} to correctly check permissions against the keyboard definition.

@yoichiro yoichiro merged commit 98829df into main Feb 12, 2026
1 check passed
@yoichiro yoichiro deleted the fix/firestore-rules-build-permission branch February 12, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant