Skip to content

Commit ae79d8a

Browse files
committed
fix: correct generated schema mistakes
1 parent 3dba4a7 commit ae79d8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/subroutine/authorization_model_generation.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ extend type core_platform-mesh_io_account
5050
{{ if eq .Scope "Namespaced" }}
5151
extend type core_namespace
5252
relations
53-
define create_{{ .Group }}_{{ .Name }}: member
54-
define list_{{ .Group }}_{{ .Name }}: member
55-
define watch_{{ .Group }}_{{ .Name }}: member
53+
define create_{{ .Group }}_{{ .Name }}: member from parent
54+
define list_{{ .Group }}_{{ .Name }}: member from parent
55+
define watch_{{ .Group }}_{{ .Name }}: member from parent
5656
{{ end }}
5757
5858
type {{ .Group }}_{{ .Singular }}
5959
relations
60-
define parent: [account]
60+
define parent: [{{ if eq .Scope "Namespaced" }}core_namespace{{ else }}core_platform-mesh_io_account{{ end }}]
6161
6262
define get: member from parent
6363
define update: member from parent

0 commit comments

Comments
 (0)