Add support for view, sequence, column & function privileges#67
Add support for view, sequence, column & function privileges#67biodevc wants to merge 9 commits intodjrobstep:masterfrom
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.