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

Assigning granular permission to collections contained in folders makes collection invisible when accessing as restricted role #9823

Closed
3 tasks done
darioguarascio opened this issue Nov 15, 2021 · 1 comment

Comments

@darioguarascio
Copy link

darioguarascio commented Nov 15, 2021

Preflight Checklist

Describe the Bug

A new role that is given permissions to access a specific collection cannot see that collection if mentioned collection is nested within a group (folder)

To Reproduce

  1. Create a new collection test_table
  2. Crete a new role test_role
  3. Assign permissions to test_table on test_role
  4. Login as test_role: test_table is visible
  5. Login as Admin
  6. Create folder in data model test_folder
  7. Assign test_table as child of test_folder (IE: grouped)
  8. Login as test_role: test_table disappeared from collection list

Errors Shown

No response

What version of Directus are you using?

9.0.1

What version of Node.js are you using?

16.13.0

What database are you using?

postgres:13

What browser are you using?

Chrome

What operating system are you using?

Linux 5.11.0-40-generic

How are you deploying Directus?

Docker

@Oreilles
Copy link
Contributor

You currently cannot add permissions on folders, therefore non-admin users cannot currently display them.
See ongoing discussion here: #9207.

@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

3 participants