Skip to content

fix: handle wildcard graph privilege in check_account_access#1547

Open
learner-77 wants to merge 1 commit intoneo4j-labs:mainfrom
learner-77:upstream-pr/fix-write-access-wildcard-privilege
Open

fix: handle wildcard graph privilege in check_account_access#1547
learner-77 wants to merge 1 commit intoneo4j-labs:mainfrom
learner-77:upstream-pr/fix-write-access-wildcard-privilege

Conversation

@learner-77
Copy link
Copy Markdown

Enterprise Neo4j allows granting WRITE on graph '*' (all graphs). The previous query matched only exact graph name, so admin users with 'GRANT WRITE ON GRAPH * TO admin' were reported as read-only.

Add OR graph = '*' condition to the SHOW USER PRIVILEGES query so wildcard grants are recognised as valid write access.

Enterprise Neo4j allows granting WRITE on graph '*' (all graphs).
The previous query matched only exact graph name, so admin users with
'GRANT WRITE ON GRAPH * TO admin' were reported as read-only.

Add OR graph = '*' condition to the SHOW USER PRIVILEGES query so
wildcard grants are recognised as valid write access.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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