Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Role permissions are not respected when using accordion fields #7413

Closed
3 tasks done
uebmaster opened this issue Aug 13, 2021 · 2 comments
Closed
3 tasks done

Role permissions are not respected when using accordion fields #7413

uebmaster opened this issue Aug 13, 2021 · 2 comments

Comments

@uebmaster
Copy link

uebmaster commented Aug 13, 2021

Similar to #7291

Preflight Checklist

Describe the Bug

If i select specific fields that could be edited by a role this are not respected if i am using an accordion field in the collection, i get the error that i don't have permissions to do this, if i delete all the accordion fields then i can update the item without problem.

To Reproduce

1. Create a collection with one or more accordion fields and any others fields.

2. Create a role that can add/see items in the collection but that just can edit some fields, this role needs no filter in custom item permissions field, use custom fields permissions and check some fields that could be edited and uncheck some (fig step 3):

image

image

3. Check some fields that could be edited and uncheck some (same than in step 2), save the changes

image

4. Login with an user from the configured role and add an item.

image

5. Now edit the item saved before and try to save the changes, you will get an error:

image

PD: If you eliminate all the accordion fields then you can save the changes without problems.

What version of Directus are you using?

9.0.0-rc.90

What version of Node.js are you using?

14.17.4

What database are you using?

Postgres 13

What browser are you using?

Firefox and chrome in windows, opera gfx and safari in mac

What operating system are you using?

macOS and Windows

How are you deploying Directus?

running locally in ubuntu server 20

@rijkvanzanten
Copy link
Member

Can you share a database dump where this is happening? I just tried it in a fresh installation, but don't see the error pop up. I'm assuming there might be a specific interface that's causing havoc within that accordion 🤔

@rijkvanzanten
Copy link
Member

Thank you for taking the time to submit this! Unfortunately, our team was not been able to reproduce it based on the information provided. Therefore, we will close this ticket for now, but will happily re-open it if new details are provided that allow us to reliably replicate the problem.

As a reminder:

  • Provide as much detail as possible in the issue description
  • Video screen captures and clear steps are very helpful
  • A full SQL dump is the fastest way for us to test/resolve (can be sent privately)
  • Make sure you are on the latest version of Directus
  • Did you try turning it off and on again?

This is an automated response.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants