-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for view, sequence, column & function privileges #67
base: master
Are you sure you want to change the base?
Conversation
Currently only table privileges are handled
I just saw that @michaelbeaumont had done the groundwork for function privs so copied and tweaked his query. |
Could you also add schema privileges? They are missing too. |
I implemented the schema privileges. @biodevc could you pickup stack11@2107f08 in your PR? |
As per @jld3103
As per @jld3103
Just added your mods but altered the query since it was producing wierd results for me |
Huh what results? We've been using this patch in production and it always worked for us. |
If a role has 'group' members and that role has priveleges granted to a schema, then with your query, all members of the role also get granted priveleges to the schema. So, it "works", but if a member is later removed from the top level role, they'll still have access to the schema. |
@biodevc could you rebase? |
A small change that is worth adding to this PR for function privileges to work (needs to include the function signature) |
I've given up hope of this pull request ever going anywhere. Migra appears to be a dead project at this stage. |
yeah :( but i thought i saw a post somewhere about the maintainer working on these projects again. |
13f62b5
to
ebbc2e4
Compare
Currently only TABLE privileges (aka roles, permissions) are handled.
This adds support for VIEWS, SEQUENCES, COLUMNS & FUNCTIONS.