graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

allow setting row permissions using range type columns

Open andrewalex opened this issue 7 years ago • 3 comments

I seem unable to set any row select permissions for tstzrange columns in the user interface the dropdown is blank. image

andrewalex avatar Sep 14 '19 13:09 andrewalex

@andrewalex We currently don't support range type fields in permission rules.

Could you share a little more information about the permission rule you are trying to set up to help us understand the use case better.

rikinsk avatar Sep 19 '19 09:09 rikinsk

given all design of permissions, I don't think there is anything you can do at the moment. I was hoping a "greater than now/today"
More details: I have a function that returns some date ranges, in a custom table. I am trying to make it so that role 'user' can see all ranges, and role 'anonymous' can only see future ranges.. The only solution I can think of involves 2 different functions, and 2 different identical empty tables. 1 for each role.

andrewalex avatar Sep 19 '19 19:09 andrewalex

@rikinsk to keep this individual issue simple (and not combine with needed scalar function calls) the supported ideal supported range operators would be the following https://www.postgresql.org/docs/9.3/functions-range.html

andrewalex avatar Oct 06 '19 00:10 andrewalex