profile
viewpoint

Ask questionsInterface Bug on viewing and interface error

Ill try to make my explanation clear as much as possible.

assume that I have a sub collection with user_updated, user_created , and custom_Review_Date field, Remark Field

I added this sub collection into my main collection with M2M relation . Note that I have no field as required in any of my collections.

I can normally update the collection item as long as i dont reference the direct-us user via user_created field in interface . the moment i reference user First name or last name and want to update it will throw an error

CleanShot 2021-05-05 at 10 44 56

CleanShot 2021-05-05 at 11 21 13@2x

so I tried to investigate and added email in the interface and tried the same action again . update any item and the error has been changed .

CleanShot 2021-05-05 at 10 34 13@2x

Please note that im just fetching the data is the system user_created field and fetching the name from the repeater.

Directions us 9.0.0rc62 MySQL 8 via Azure MySQL deployed via npx in Azure Appservice Using Chrome
Storage : Azure Blobs

<!--

Hi, thank you for taking the time to create an issue.

Please make sure you're on the latest version of Directus. There's a chance your issue might've been resolved already 🙂

Can you please provide:

  1. The issue and what you expected to happen The _ _ does _ _ when _ _ while it should _ _

  2. Exact steps to reproduce this issue Click this, tap that, see error _ _

  3. Your environment: What version of Directus you are using. Which DBMS are you using (MySQL 8, Postgres 12, ...). Which deployment are you using (npx, Docker, ...). What browser are you using (Chrome 87, Safari 14, ...).

  4. Any other relevant information we might need to reproduce this issue A SQL dump of the setup. What third party services you rely on (S3, managed database, ...).

-->

directus/directus

Answer questions fballan93

@fballan93 Could you share a DB dump where this is happening? It's a little difficult to reproduce just based on the information provided.

It also sounds like this could be a duplicate of #5538 just popping up in a different location 🤔

I think it is different . the issue here is in interface . and can be summarized in two points :

  • Adding any field from directus_users in M2M M2O O2M interface to display inside a collection item will result in a permission denied error while updating although im the admin .

  • Adding any item from another sub collection in the interface will not display when clicking on it

useful!
source:https://uonfu.com/
Github User Rank List