Closed w0kyj closed 1 year ago
I believe this is the same confusion around validation only checking against the payload, not against the full final object. In this case, the app most likely only submits {id: 1, text: 'some Portuguese text'}
to the API, which in turn causes the validation to fail, as language_id
isn't set even though it already exists as such in the DB
I'm having a similar issue. Using latest version, 9.20.4
I've created a specific role, but I can't restrict the editing to a specific language.
Linear: ENG-230
I believe this has since been resolved
Describe the Bug
Created a user role with the language restricted permissions, using the Directus Cloud Demo project. The goal is to restrict the user to only being able to edit pt-BR translations fields.
As long as the translations junction table entries exist, the role permissions seem to work as expected, but when the pt-BR junction entries don't exist for an existing article, then the user gets one of two errors depending on Articles Update permission:
OR
To Reproduce
Directus Cloud Demo project collection permissions for Language Restricted Role:
articles
Update - Ideally fields are restricted to Id and Translations with the following filter rule, but get
Error: You don't have permission to access this
articles_translations
Create: All Fields and filter
Read: All Fields and filter
Update: All Fields and filter
languages
Create: None
Read: All Fields and filter
Update: None
User with Language Restricted Role:
Errors Shown
OR
OR
What version of Directus are you using?
9.13.0 & 9.14.1
What version of Node.js are you using?
Directus Cloud
What database are you using?
Directus Cloud
What browser are you using?
Chrome
How are you deploying Directus?
Directus Cloud