-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hi!
I have permissions for a type object and default rules. I've deployed these changes using web UI and it works great.
The problem is when I try to pull the changes made in the UI using realm-cli the fields "fields" and "additional_fields" are not included same if I add them in my code and then push using cli.
Here's what I have
{
"rules": {
"Project": [
{
"name": "readAuthorizedProject",
"applyWhen": {},
"write": {
"users": "%%user.id"
},
"fields": {
"sections": {
"write": true
}
},
"additional_fields": {
"read": true,
"write": false
}
}
]
},
"defaultRoles": [
{
"name": "read-write",
"applyWhen": {},
"read": true,
"write": true
}
]
}And here's what I get if I pull
{
"rules": {
"Project": [
{
"name": "readAuthorizedProject",
"applyWhen": {},
"write": {
"users": "%%user.id"
}
}
]
},
"defaultRoles": [
{
"name": "read-write",
"applyWhen": {},
"read": true,
"write": true
}
]
}I thought it might be the cli or app services simplifying my rules because they were unnecessarily complex but after testing my version is working as expected wheras the one with missing field is not what I want.
Metadata
Metadata
Assignees
Labels
No labels