Let(
params: {
membership: {
resource: Collection("users")
},
privileges: [
{
resource: Function("login"),
actions: {
call: true
}
}
]
},
If(
Exists(Role('guest')),
Update(Role('guest'), Var('params')),
Create(Role('guest'), Var('params'))
)
)
Running the code above on the Dashboard Shell will result to Error: missing ) after argument list
In fact, just running:
Let(
params: {},
Var("params")
)
throws the same error.