Skip to content
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

Confirm claims_role has SELECT permission to all ref'd types after insert to realtime.subscriptions #42

Open
olirice opened this issue Feb 19, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@olirice
Copy link
Collaborator

olirice commented Feb 19, 2022

Use a trigger to make sure the claims_role will be able to select from the table without getting an error like

ERROR:  type "some_schema.some_type" does not exist
@olirice olirice added the triage-required Bug report requires contributor sorting label Feb 19, 2022
@olirice olirice self-assigned this Feb 19, 2022
@olirice
Copy link
Collaborator Author

olirice commented Feb 19, 2022

Ref: https://www.postgresql.org/docs/13/functions-info.html

pg_catalog.has_type_privilege ( [ user name or oid, ] type text or oid, privilege text ) → boolean

Does user have privilege for data type? The only allowable privilege type is USAGE. When specifying a type by name rather than by OID, the allowed input is the same as for the regtype data type (see [Section 8.19](https://www.postgresql.org/docs/13/datatype-oid.html)).

@olirice olirice added enhancement New feature or request bug Something isn't working and removed triage-required Bug report requires contributor sorting enhancement New feature or request labels Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant