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
Collection not loading for user with Custom Item Permission #8073
Comments
Hi @azrikahar,
Yes, all the fields are checked Screen.Recording.2021-09-22.at.10.59.32.mov. |
@stgonzales thanks for the clear video! definitely helped to clear things up as I thought when you mentioned "full read permission" meant "Full Access" in my previous test. Unfortunately, I am still unable to reproduce this on rc.92, with the same configurations you described on your issue & what is shown in your video (attached my video here, let me know if I missed anything). My current suspicion would be on the Would you mind trying out the reproduction steps you shared without any relational fields on your end? It'll be very helpful for us to narrow down on the actual root cause here 👍 4GpHDvmV9f.mp4 |
Maybe you can share a reproducible database dump @stgonzales I think it would be easier. |
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:
This is an automated response. |
Preflight Checklist
Describe the Bug
❕ Similar issue(#7286). Only open another one according to @rijkvanzanten instructions.
After setting a custom Item Permission in a Role, users in that role can't see the collection content.
I have two collections (
Site
andText
), collectionText
has a relational fieldMany to One
withSite
.The collection
Text
also have relational fields with other collections.Some users have permission to see specific items in the collection
Text
, so I use a custom Item Permission in the user Role to filterText
collection items with a specificsite_ id
:After that when the user tries to open the collection it keeps only loading.
And the message error
Cannot read properties of undefined (reading 'related_collection')
on the console:To Reproduce
Many to One
relation on the second collection with the first.These were the steps that I did before opening this issue.
What version of Directus are you using?
v9.0.0-rc.92
What version of Node.js are you using?
v14.17.0
What database are you using?
PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying Directus?
running locally
The text was updated successfully, but these errors were encountered: