mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix: possible nil pointer in actions (#5510)
This commit is contained in:
parent
4ca50e0802
commit
a6c471b2e4
@ -59,6 +59,9 @@ func AppendGrantFunc(userGrants *UserGrants) func(c *actions.FieldConfig) func(c
|
|||||||
}
|
}
|
||||||
|
|
||||||
func UserGrantsFromQuery(c *actions.FieldConfig, userGrants *query.UserGrants) goja.Value {
|
func UserGrantsFromQuery(c *actions.FieldConfig, userGrants *query.UserGrants) goja.Value {
|
||||||
|
if userGrants == nil {
|
||||||
|
return c.Runtime.ToValue(nil)
|
||||||
|
}
|
||||||
grantList := &userGrantList{
|
grantList := &userGrantList{
|
||||||
Count: userGrants.Count,
|
Count: userGrants.Count,
|
||||||
Sequence: userGrants.Sequence,
|
Sequence: userGrants.Sequence,
|
||||||
|
Loading…
Reference in New Issue
Block a user