Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Fix readSchemaGrants and readTableGrants for groups#76

Merged
winglot merged 1 commit intobrainly:masterfrom
olivermeyer:fix-read-table-and-schema-grants
Aug 4, 2022
Merged

Fix readSchemaGrants and readTableGrants for groups#76
winglot merged 1 commit intobrainly:masterfrom
olivermeyer:fix-read-table-and-schema-grants

Conversation

@olivermeyer
Copy link
Copy Markdown

@olivermeyer olivermeyer commented Aug 4, 2022

This PR fixes the readSchemaGrants and readTableGrants functions. They currently don't work correctly if two groups start with the same name and have different permissions: in our case, we have a data group and a data_eng legacy group and the queries were returning the privileges for the data_eng group, even when gr.groname == data.

@olivermeyer
Copy link
Copy Markdown
Author

@winglot please can you take a look at this?

@winglot winglot merged commit c8ca177 into brainly:master Aug 4, 2022
@olivermeyer olivermeyer deleted the fix-read-table-and-schema-grants branch August 4, 2022 10:56
@winglot winglot added the bug Something isn't working label Aug 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants