Skip to content

Commit 143c285

Browse files
committed
Added UnauthorizedRole field for Hasura config and set default value equal "user".
1 parent 32ef3f0 commit 143c285

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ type Hasura struct {
5858
EnableAggregations bool `yaml:"allow_aggregation"`
5959
Source *HasuraSource `yaml:"source"`
6060
Rest *bool `yaml:"rest"`
61+
UnauthorizedRole string `yaml:"unauthorized_role"`
6162
}
6263

6364
type HasuraSource struct {
@@ -75,6 +76,8 @@ func (h *Hasura) UnmarshalYAML(unmarshal func(interface{}) error) error {
7576
IsolationLevel: "read-committed",
7677
}
7778

79+
h.UnauthorizedRole = "user"
80+
7881
type plain Hasura
7982
return unmarshal((*plain)(h))
8083
}

0 commit comments

Comments
 (0)