You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no other issue that already describes my problem.
Describe the Bug
A user with granular permission fails to add new rows in a table that has a M2O relationship.
As admin role, with all permissions set, everything works well.
The custom role has all permission set
To Reproduce
In table A there is a website field Many to One to website table and a simple text field name
I am accessing directus as user that has read/write/delete/update permission on table A where website -> name Equals x
When I try to add a new row to table A, selecting an entry from the website table with the M2O selector, I get the following error
{"errors":[{"message":"\"website\" must be of type object","extensions":{"code":"FAILED_VALIDATION","field":"website"}}]}
the data being posted is the following:
{
"name": "test",
"website": 37
}
Errors Shown
What version of Directus are you using?
9.4.0
What version of Node.js are you using?
16.13.1
What database are you using?
postgres:13
What browser are you using?
Chrome
What operating system are you using?
Linux 5.11.0-41-generic
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Describe the Bug
A user with granular permission fails to add new rows in a table that has a M2O relationship.
As admin role, with all permissions set, everything works well.
The custom role has all permission set
To Reproduce
In table
A
there is awebsite
field Many to One towebsite
table and a simple text fieldname
I am accessing directus as user that has read/write/delete/update permission on table A where
website -> name Equals x
When I try to add a new row to table
A
, selecting an entry from thewebsite
table with theM2O
selector, I get the following errorthe data being posted is the following:
Errors Shown
What version of Directus are you using?
9.4.0
What version of Node.js are you using?
16.13.1
What database are you using?
postgres:13
What browser are you using?
Chrome
What operating system are you using?
Linux 5.11.0-41-generic
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered: