feat(editor): enforce per-map permissions and audit every map edit - #381
Open
alidonghao118-commits wants to merge 11 commits into
Open
alidonghao118-commits wants to merge 11 commits into
alidonghao118-commits wants to merge 11 commits into
Conversation
Author
|
Ya pude entrar a GrantFox. El issue aparece asignado a mi usuario, pero no veo el botón para postularme y Third Campaign figura inactiva desde el 31 de agosto. ¿Cómo registro esta entrega para el pago de los $50? https://contribute.grantfox.xyz/org/Bitcoindefi/repo/OpenAO/issue/4 |
alidonghao118-commits
marked this pull request as ready for review
September 19, 2026 11:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4
Map editing now checks the authenticated account against a grant for the requested map. Protected maps (map 1 by default) require a global administrator plus an explicit override, passed through the Next proxy and selected in the editor. Collaborators can open their assigned maps and read the object/NPC catalogs; global definition edits and graphic uploads remain admin-only.
Every map mutation records the actor, map, action and time, including clearTile. SQL edits commit their audit record in the same transaction. File-backed NPC edits first record a durable intent with before/after snapshots, replace the file, then mark the outcome. api/MAP_EDITING.md documents grants, configuration and recovery of pending file edits; filesystem and database writes are not an atomic transaction.
Validation on Windows with PostgreSQL 18.6:
Ready for review. Repository workflows still need maintainer approval. Docker is unavailable on this Windows host; the sparse-checkout API asset packaging check does not replace full CI. Please enable the pending workflows for this branch.